blob: 95d574c94af6bf439058c382f673788f7637cf7b (
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
|
# Maintainer: KokaKiwi <kokakiwi+aur@kokakiwi.net>
_pkgname=adb_shell
pkgname="python-${_pkgname}"-git
pkgver=0.2.3.r2.gd5bfd5f
pkgrel=2
pkgdesc="A Python implementation of ADB with shell and FileSync functionality."
arch=('any')
url="https://pypi.org/project/${_pkgname}"
license=('Apache')
depends=('python' 'python-cryptography' 'python-pyasn1' 'python-rsa')
makedepends=('git' 'python-setuptools')
optdepends=('python-aiofiles: async API'
'python-libusb1: To connect to a device via USB')
provides=('python-adb_shell')
conflicts=('python-adb_shell')
source=("${pkgname}::git+https://github.com/JeffLIrion/adb_shell.git")
sha256sums=('SKIP')
pkgver() {
cd "${pkgname}"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${pkgname}"
python setup.py build
}
check() {
cd "${pkgname}"
export PYTHONPATH="build/lib"
python setup.py test
}
package() {
cd "${pkgname}"
python setup.py install --root="${pkgdir}" --optimize=1
install -Dm0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|