blob: 1d98f13db293d48ee8c42f35942df77c45f19a0e (
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
|
# Maintainer: Camden Cheek <ccheek22@gmail.com>
pkgname='python-adb-git'
pkgver=r65.fb09de9
pkgrel=4
pkgdesc="Python ADB + Fastboot implementation"
arch=('any')
url="https://github.com/google/python-adb.git"
license=('apachev2')
depends=('libusb>=1.0.16' 'python2-libusb1>=1.2.0')
makedepends=('git' 'python2>=2.7')
provides=()
conflicts=()
replaces=()
source=('git+https://github.com/google/python-adb.git')
md5sums=('SKIP') #generate with 'makepkg -g'
pkgver() {
cd "${srcdir}/python-adb"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd "${srcdir}/python-adb"
python2 setup.py build
}
package() {
cd "${srcdir}/python-adb"
python2 setup.py install --root="$pkgdir" --optimize=1 || return 1
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -D -m644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}
|