# Contributor: kitsunyan # Maintainer: Stefan Husmann pkgname=pakku-git pkgver=0.14.r19.gf2a93be pkgrel=1 epoch=1 pkgdesc='Pacman wrapper with AUR support with latest changes from github repo' arch=('x86_64' 'aarch64') url="https://github.com/zqqw/pakku" license=('GPL3') depends=('libcurl.so' 'git') makedepends=('nim' 'git' 'asciidoc') backup=('etc/pakku.conf') conflicts=(${pkgname%-git}) provides=(${pkgname%-git}) source=("git+$url.git" ) backup=('etc/pakku.conf') sha256sums=('SKIP') pkgver() { cd ${pkgname%-git} git describe --tags|sed 's+-+.r+'|tr - .| cut -c2- } build() { local addargs=() grep -Fxq debug <<< "`printf '%s\n' "${options[@]}"`" && addargs=(NIM_TARGET='debug' NIM_OPTIMIZE='none') cd ${pkgname%-git} make "${addargs[@]}" NIM_CACHE_DIR='../nimcache' PREFIX='/usr' } package() { cd ${pkgname%-git} make PREFIX='/usr' DESTDIR="$pkgdir" install }