# Maintainer: Colin Woodbury pkgname=aura pkgver=3.2.8 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=('c2cd5e35763abea5f82a5f7d21af2f488153aab5996dc4730598ec6dc88737cc') 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} }