depends=('bash>=4.4' 'git' 'pacman') makedepends=('make>=4.2') checkdepends=() optdepends=() pkgname="$(git config remote.origin.url | rev | cut -f 1 -d '/' | rev | sed 's/.git$//')" pkgver="$(git describe --tag --abbrev=0)"."$(git rev-parse --short HEAD)" pkgrel=1 pkgrel() { echo $(( `git log "$(git describe --tag --abbrev=0)"..HEAD | grep -c commit` + 1 )) } epoch="$(git log | grep -c commit)" pkgdesc="$(head -n 1 README)" arch=("x86_64") url="https://aninix.net/foundation/${pkgname}" license=('custom') groups=() provides=("${pkgname}") conflicts=() replaces=("${pkgname,,}", "aninix-${pkgname,,}") backup=(usr/local/etc/Maat/aur.list) options=() install=installscript changelog= source=() noextract=() md5sums=() validpgpkeys=() prepare() { git pull make -C .. test && make -C .. clean } build() { make -C .. } package() { export pkgdir="${pkgdir}" make -C .. install install -D -m644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }