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
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions packages/apkid/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
pkgbase = apkid
AkechiShiro marked this conversation as resolved.
Show resolved Hide resolved
pkgdesc = Android Application Identifier for Packers, Protectors, Obfuscators and Oddities.
pkgver = 2.1.1
pkgrel = 2
epoch = 2
url = https://github.com/rednaga/APKiD
arch = any
groups = blackarch
groups = blackarch-mobile
license = GPL3
makedepends = python-setuptools
makedepends = python-yara-dex
depends = python
depends = python-argparse
depends = python-yara-dex
source = https://github.com/rednaga/APKiD/releases/download/v2.1.1/apkid-2.1.1.tar.gz
sha512sums = 02355685e7f169219ef7e5a1dda91eeff4641d81c0fe6cdfc1c3dc5cf155d1e70d42fd55428935a77e2c9ee73c5159d6f4fedca44edb7e9cb5a340f66ba6293c

pkgname = apkid
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-dex')
makedepends=('python-setuptools' 'python-yara-dex')
source=("https://github.com/rednaga/APKiD/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('02355685e7f169219ef7e5a1dda91eeff4641d81c0fe6cdfc1c3dc5cf155d1e70d42fd55428935a77e2c9ee73c5159d6f4fedca44edb7e9cb5a340f66ba6293c')

Expand Down
20 changes: 20 additions & 0 deletions packages/python-yara-dex/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
pkgbase = python-yara-dex
pkgdesc = The Python interface for YARA.
pkgver = 1.0.3
pkgrel = 1
url = https://github.com/MobSF/yara-python-dex
arch = any
groups = blackarch
license = Apache
makedepends = python-setuptools
makedepends = git
makedepends = glibc
makedepends = python
makedepends = yara
provides = python-yara
conflicts = python-yara
conflicts = python-yara-rednaga
source = git+https://github.com/MobSF/yara-python-dex.git
sha512sums = SKIP

pkgname = python-yara-dex
38 changes: 38 additions & 0 deletions packages/python-yara-dex/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
AkechiShiro marked this conversation as resolved.
Show resolved Hide resolved
# See COPYING for license details.

pkgname=python-yara-dex
_pkgname=yara-python
AkechiShiro marked this conversation as resolved.
Show resolved Hide resolved
pkgver=1.0.3
pkgrel=1
pkgdesc='The Python interface for YARA.'
url='https://github.com/MobSF/yara-python-dex'
arch=('any')
groups=('blackarch')
AkechiShiro marked this conversation as resolved.
Show resolved Hide resolved
license=('Apache')
makedepends=('python-setuptools' 'git' 'glibc' 'python' 'yara')
provides=('python-yara')
conflicts=('python-yara' 'python-yara-rednaga')
AkechiShiro marked this conversation as resolved.
Show resolved Hide resolved
source=("git+https://github.com/MobSF/yara-python-dex.git")
sha512sums=('SKIP')

prepare() {
cd "$_pkgname-dex"

git submodule update --init --recursive
}

build() {
cd "$_pkgname-dex"

python setup.py build --enable-dex
}

package() {
cd "$_pkgname-dex"

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

install -Dm 644 README.md "$pkgdir/usr/share/doc/$pkgname/README"
}