desktop/android-file-transfer-linux/PKGBUILD
2016-03-20 19:25:35 +01:00

35 lines
831 B
Bash

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
}