Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add python-yara-dex PKGBUILD and replace python-yara-rednaga in PKGBU… #3630

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
4 changes: 2 additions & 2 deletions packages/apkid/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ groups=('blackarch' 'blackarch-mobile')
arch=('any')
url='https://github.com/rednaga/APKiD'
license=('GPL3')
depends=('python' 'python-argparse' 'python-yara-rednaga')
makedepends=('python-setuptools' 'python-yara-rednaga')
depends=('python' 'python-argparse' 'python-yara-python-dex')
makedepends=('python-setuptools' 'python-yara-python-dex')
source=("https://github.com/rednaga/APKiD/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('02355685e7f169219ef7e5a1dda91eeff4641d81c0fe6cdfc1c3dc5cf155d1e70d42fd55428935a77e2c9ee73c5159d6f4fedca44edb7e9cb5a340f66ba6293c')

Expand Down
41 changes: 41 additions & 0 deletions packages/python-yara-python-dex/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-yara-python-dex
#_gitpkgname=yara-python
_pkgname=yara-python-dex
pkgver=1.0.3.r0.g8e2df94
pkgrel=1
pkgdesc='The Python interface for YARA.'
arch=('any')
url='https://github.com/MobSF/yara-python-dex/releases'
license=('Apache')
makedepends=('git' 'python-setuptools' 'glibc' 'python' 'yara')
provides=('python-yara')
conflicts=('python-yara' 'python-yara-rednaga')
options=(!emptydirs)
source=("git+https://github.com/MobSF/${_pkgname}.git")
sha256sums=('SKIP')

pkgver() {
cd $_pkgname
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
cd $_pkgname
git submodule update --init --recursive
}

build() {
cd "$_pkgname"

python setup.py build
}

package() {
cd "$_pkgname"

python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}