summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKokaKiwi2020-10-18 02:03:07 +0200
committerKokaKiwi2020-10-18 02:03:07 +0200
commit28a3a7f488c0887d73248b1140115424a0891766 (patch)
treec0f1047d3f8f871f9c6d78ee69e638f4473be51b
downloadaur-28a3a7f488c0887d73248b1140115424a0891766.tar.gz
Initial commit.
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD44
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9dc0eaacc3e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = python-adb_shell-git
+ pkgdesc = A Python implementation of ADB with shell and FileSync functionality.
+ pkgver = 0.2.3.r2.gd5bfd5f
+ pkgrel = 1
+ url = https://pypi.org/project/adb_shell
+ arch = any
+ license = Apache
+ makedepends = git
+ makedepends = python-setuptools
+ depends = python
+ optdepends = python-aiofiles: async API
+ optdepends = python-libusb1: To connect to a device via USB
+ provides = python-adb_shell
+ conflicts = python-adb_shell
+ source = python-adb_shell-git::git+https://github.com/JeffLIrion/adb_shell.git
+ sha256sums = SKIP
+
+pkgname = python-adb_shell-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0080160d178
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: KokaKiwi <kokakiwi+aur@kokakiwi.net>
+
+_pkgname=adb_shell
+pkgname="python-${_pkgname}"-git
+pkgver=0.2.3.r2.gd5bfd5f
+pkgrel=1
+pkgdesc="A Python implementation of ADB with shell and FileSync functionality."
+arch=('any')
+url="https://pypi.org/project/${_pkgname}"
+license=('Apache')
+depends=('python')
+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"
+}