desktop/android-file-transfer-linux/PKGBUILD
2016-08-12 13:39:09 +02:00

35 lines
831 B
Bash

pkgname=android-file-transfer-linux
pkgver=3.0
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=('159be0fdf39634ec1eaaf59561034d5447940013')
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
}