summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoaquin2018-01-11 13:13:04 -0500
committerJoaquin2018-01-11 13:13:04 -0500
commitd9c41f9aee6daf9ddd5ec501f9fe782042666b4b (patch)
treea896756d71c68e8c2b8bd90f36d96f36afbd3dc9
parent6a42e617fbbd3e63e25a79aa5d6fe3a3f7150b91 (diff)
downloadaur-d9c41f9aee6daf9ddd5ec501f9fe782042666b4b.tar.gz
Minor changes in implementation
-rw-r--r--PKGBUILD19
1 files changed, 8 insertions, 11 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 70f9de0f9c2..3e245fad3f1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,12 +9,12 @@ arch=("any")
url="https://github.com/honeynet/${_pkgname}"
license=('MIT')
depends=('python2' 'python2-pillow' 'python2-networkx' 'python2-decorator'
- 'python2-androguard' 'android-tools' 'android-udev')
+ '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')
+ 'android-sdk: for developers'
+ 'android-platform-tools: for developers'
+ 'jdk9-openjdk: for developers')
source=("git+${url}")
sha256sums=('SKIP')
@@ -29,12 +29,9 @@ build() {
}
package() {
- cd ${_pkgname}
- _pyver="python2.7"
- python2 setup.py install --root="${pkgdir}" --optimize=1
+ cd "${srcdir}/${_pkgname}"
+ python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
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"
+ mkdir "${pkgdir}/usr/lib/python2.7/site-packages/${_pkgname}/resources"
+ cp -R ${_pkgname}/resources/{stylesheets,minicap,index.html} "${pkgdir}/usr/lib/python2.7/site-packages/${_pkgname}/resources"
}