Skip to content

Commit

Permalink
Update PKGBUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
D3vil0p3r authored and noptrix committed Nov 23, 2024
1 parent b90ec59 commit 7962509
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 20 deletions.
3 changes: 3 additions & 0 deletions lists/to-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
apkid
python-yara-python-dex
ssma
12 changes: 6 additions & 6 deletions packages/apkid/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@

pkgname=apkid
_pkgname=APKiD
pkgver=2.1.4
pkgrel=3
pkgver=2.1.5
pkgrel=1
epoch=2
pkgdesc='Android Application Identifier for Packers, Protectors, Obfuscators and Oddities.'
groups=('blackarch' 'blackarch-mobile')
arch=('any')
url='https://github.com/rednaga/APKiD'
license=('GPL3')
depends=('python' 'python-yara-rednaga')
makedepends=('python-setuptools' 'python-yara-rednaga')
license=('GPL-3.0')
depends=('python' 'python-yara-python-dex')
makedepends=('python-setuptools')
source=("https://github.com/rednaga/$_pkgname/archive/refs/tags/v$pkgver.tar.gz")
sha512sums=('c69313579ca42d8ce4abdf81aef369518a2b7ca2b411a99614ef77034b2c56dcb9db4dbe5ba6f27230d9f08703957df6d16c41741131944721927eb23f6d74ab')
sha512sums=('11767921662fc6939a23694155c4d6e31d19b62d809e51aca6002669649bc97f2f0ee2eddfcd35804b41db39e9023269c4990d45181757d3e5e12224ac8dc413')

prepare() {
cd "$_pkgname-$pkgver"
Expand Down
7 changes: 6 additions & 1 deletion packages/python-yara-python-dex/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ sha512sums=('SKIP')
pkgver() {
cd $_pkgname

git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
( set -o pipefail
git describe --long --tags --abbrev=7 2>/dev/null |
sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "%s.%s" "$(git rev-list --count HEAD)" \
"$(git rev-parse --short=7 HEAD)"
)
}

prepare() {
Expand Down
32 changes: 19 additions & 13 deletions packages/ssma/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,40 @@
# See COPYING for license details.

pkgname=ssma
_pkgname=SSMA
pkgver=215.2a2b6bd
pkgrel=5
groups=('blackarch' 'blackarch-malware')
arch=('any')
pkgrel=6
pkgdesc='Simple Static Malware Analyzer.'
arch=('any')
groups=('blackarch' 'blackarch-malware')
url='https://github.com/secrary/SSMA'
license=('GPL3')
depends=('python' 'python-pefile' 'python-magic' 'python-yara-rednaga' 'ssdeep'
'python-elasticsearch' 'python-gitpython' 'python-virustotal-api'
'python-pyelftools')
license=('GPL-3.0')
depends=('python' 'python-pefile' 'python-magic' 'python-yara-python-dex'
'ssdeep' 'python-elasticsearch' 'python-gitpython'
'python-virustotal-api' 'python-pyelftools')
makedepends=('git')
source=("$pkgname::git+https://github.com/secrary/SSMA.git")
source=("git+https://github.com/secrary/$_pkgname.git")
sha512sums=('SKIP')

pkgver() {
cd $pkgname

echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
cd $_pkgname

( set -o pipefail
git describe --long --tags --abbrev=7 2>/dev/null |
sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "%s.%s" "$(git rev-list --count HEAD)" \
"$(git rev-parse --short=7 HEAD)"
)
}

prepare() {
cd $pkgname
cd $_pkgname

touch src/__init__.py
}

package() {
cd $pkgname
cd $_pkgname

install -dm 755 "$pkgdir/usr/bin"
install -dm 755 "$pkgdir/usr/share/$pkgname"
Expand Down

0 comments on commit 7962509

Please sign in to comment.