Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (24 sloc) 755 Bytes
# Maintainer: ArchStrike <team@archstrike.org>
buildarch=1
_pkgname=yararules
pkgname=${_pkgname}-git
pkgver=20200118.r1671
pkgrel=1
pkgdesc='A Repository of yara rules'
arch=('any')
url='https://github.com/Yara-Rules/rules'
license=('GPL2')
depends=('bash')
makedepends=('git')
source=("${pkgname}::git+https://github.com/Yara-Rules/rules.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
install -dm755 ${pkgdir}/usr/share/${_pkgname}
cp -a --no-preserve=ownership ./* "${pkgdir}/usr/share/${_pkgname}/"
install -Dm644 README.md "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
}
You can’t perform that action at this time.