Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (32 sloc) 942 Bytes
# Maintainer: ArchStrike <team@archstrike.org>
buildarch=1
pkgname=damm-git
pkgver=20170416.r32
pkgrel=2
groups=('archstrike' 'archstrike-malware')
pkgdesc="Differential Analysis of Malware in Memory"
arch=('any')
url='https://github.com/504ensicsLabs/DAMM'
license=('GPL2')
depends=('python2' 'volatility')
makedepends=('git')
provides=('damm')
source=("${pkgname}::git+https://github.com/504ensicsLabs/DAMM.git")
sha512sums=('SKIP')
pkgver() {
cd "${pkgname}" || exit
printf "%s.r%s" "$(git show -s --format=%ci master | sed 's/\ .*//g;s/-//g')" "$(git rev-list --count HEAD)"
}
package() {
cd "${pkgname}" || exit
# Make base directories.
install -dm755 "${pkgdir}/usr/share/damm"
install -dm755 "${pkgdir}/usr/bin"
cp -a --no-preserve=ownership ./* "${pkgdir}/usr/share/damm"
cat > "${pkgdir}/usr/bin/damm" << EOF
#!/usr/bin/env bash
cd /usr/share/damm
python2 damm.py "\$@"
EOF
chmod 755 "${pkgdir}/usr/bin/damm"
}
You can’t perform that action at this time.