# Maintainer: Colin Woodbury pkgname=aura pkgver=3.2.9 pkgrel=1 pkgdesc="A secure package manager for Arch Linux and the AUR" url="https://github.com/fosskers/aura" license=('GPL3') arch=('x86_64') depends=('gmp' 'pacman' 'git') makedepends=('stack') optdepends=('bash-completion: for bash completions') conflicts=('aura-bin' 'aura-git') options=('strip') backup=("etc/$pkgname.conf") source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") sha256sums=('8ee1b1daa40c811707532974aab35d300d7eede843db9298ae45994c1f4e107f') build() { cd "$pkgname-$pkgver" stack clean "$pkgname" stack build --pedantic "$pkgname" } package() { cd "$pkgname-$pkgver" stack install --local-bin-path="$pkgdir/usr/bin" "$pkgname" # Install conf file install -Dm644 "$pkgname/doc/$pkgname.conf" -t "$pkgdir/etc" # Install man pages install -Dm644 "$pkgname/doc/$pkgname.8" -t "$pkgdir/usr/share/man/man8" install -Dm644 "$pkgname/doc/$pkgname.conf.5" -t "$pkgdir/usr/share/man/man5" # Install bash completions install -Dm644 "$pkgname/doc/completions/bashcompletion.sh" \ "$pkgdir/usr/share/bash-completion/completions/$pkgname" # Install zsh completions install -Dm644 "$pkgname/doc/completions/_$pkgname" -t \ "$pkgdir/usr/share/zsh/site-functions" # Directories for storing PKGBUILDs, source packages & installed package states install -d "$pkgdir/var/cache/$pkgname/"{pkgbuilds,src,states} }