summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoaquin2018-01-11 08:51:03 -0500
committerJoaquin2018-01-11 08:51:03 -0500
commiteacf164fb25a28c097ded6606dd4b2a267136824 (patch)
tree51165d9fa35790678d8b9ceab2a7f3bc887a91c1
downloadaur-eacf164fb25a28c097ded6606dd4b2a267136824.tar.gz
Initial Upload: droidbot-git 1.0.2b1.r142.gcc0ec52-1
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD40
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..46b8d4a9622
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = droidbot-git
+ pkgdesc = A lightweight test input generator for Android
+ pkgver = 1.0.2b1.r142.gcc0ec52
+ pkgrel = 1
+ url = https://github.com/honeynet/droidbot
+ arch = any
+ license = MIT
+ makedepends = python2-setuptools
+ makedepends = git
+ depends = python2
+ depends = python2-pillow
+ depends = python2-networkx
+ depends = python2-decorator
+ depends = python2-androguard
+ depends = android-tools
+ depends = android-udev
+ optdepends = opencv: to run droidbot in cv mode android-sdk: for developers android-platform-tools: for developers jdk9-openjdk: for developers
+ source = git+https://github.com/honeynet/droidbot
+ sha256sums = SKIP
+
+pkgname = droidbot-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4e8092d8ca9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Joaquin Garmendia <joaquingc123@gmail.com>
+
+pkgname=droidbot-git
+_pkgname=droidbot
+pkgver=1.0.2b1.r142.gcc0ec52
+pkgrel=1
+pkgdesc="A lightweight test input generator for Android"
+arch=("any")
+url="https://github.com/honeynet/${_pkgname}"
+license=('MIT')
+depends=('python2' 'python2-pillow' 'python2-networkx' 'python2-decorator'
+ 'python2-androguard' 'android-tools' 'android-udev')
+makedepends=('python2-setuptools' 'git')
+optdepends=('opencv: to run droidbot in cv mode
+ android-sdk: for developers
+ android-platform-tools: for developers
+ jdk9-openjdk: for developers')
+source=("git+${url}")
+sha256sums=('SKIP')
+
+pkgver(){
+ cd ${_pkgname}
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd ${_pkgname}
+ python2 setup.py build
+}
+
+package() {
+ cd ${_pkgname}
+ _pyver="python2.7"
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
+ mkdir "${pkgdir}/usr/lib/${_pyver}/site-packages/${_pkgname}/resources"
+ cp -R "${srcdir}/${_pkgname}/${_pkgname}/resources/stylesheets" "${pkgdir}/usr/lib/${_pyver}/site-packages/${_pkgname}/resources"
+ cp -R "${srcdir}/${_pkgname}/${_pkgname}/resources/minicap" "${pkgdir}/usr/lib/${_pyver}/site-packages/${_pkgname}/resources"
+ cp "${srcdir}/${_pkgname}/${_pkgname}/resources/index.html" "${pkgdir}/usr/lib/${_pyver}/site-packages/${_pkgname}/resources"
+}