added android-file-transfer

This commit is contained in:
gnastyle 2016-03-20 19:25:35 +01:00
parent be1a5bcc08
commit 1d6bd6fb58
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,34 @@
pkgname=android-file-transfer-linux
pkgver=2.4
pkgrel=1
pkgdesc="An interactive MTP client implemented in C++ using Qt toolkit"
arch=('x86_64')
url="https://github.com/whoozle/android-file-transfer-linux"
license=('GPL3')
depends=('qt5-base' 'fuse' 'hicolor-icon-theme' 'xdg-utils' 'libxkbcommon-x11' 'file')
makedepends=('cmake' 'ninja' 'mesa')
install=$pkgname.install
source=("https://github.com/whoozle/android-file-transfer-linux/archive/v$pkgver.tar.gz")
sha1sums=('e4ba37af13487b1a4841b70cc5a6b01190b26a7c')
prepare() {
cd "$pkgname-$pkgver"
mkdir -p build
}
build() {
cd "$pkgname-$pkgver/build"
cmake -G Ninja .. \
-DCMAKE_INSTALL_PREFIX=/usr
ninja
}
package() {
cd "$pkgname-$pkgver"/build
DESTDIR="$pkgdir" ninja install
install -Dm644 ../LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}

View File

@ -0,0 +1,13 @@
post_install() {
update-desktop-database -q
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}