blob: e93f033caea03cef67e32785699968b8f5209ee3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Maintainer: Askhat Bakarov <sirocco{at}ngs{dot}ru>
pkgname=android-file-transfer-linux-git
_pkgname="${pkgname/-git/}"
_gitbranch=master
_gitauthor=whoozle
pkgver=2.4.r195.g52e1743
pkgrel=1
pkgdesc="An interactive MTP client implemented in C++ using Qt toolkit"
arch=('i686' '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' 'git' 'ninja' 'mesa')
conflicts=('android-file-transfer')
install=$pkgname.install
source=("git://github.com/$_gitauthor/$_pkgname.git#branch=$_gitbranch")
md5sums=('SKIP')
pkgver() {
cd "$_pkgname"
# git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$_pkgname"
mkdir -p build
}
build() {
cd "$_pkgname"
cd build
cmake -G Ninja .. \
-DCMAKE_INSTALL_PREFIX=/usr
ninja
}
package() {
cd "$_pkgname"/build
DESTDIR="$pkgdir" ninja install
install -Dm644 ../LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
|