archlinux-pkgbuilds/PKGBUILD
2016-04-19 15:31:48 +02:00

30 lines
898 B
Bash

pkgname=aurutils
pkgver=0.7.0
pkgrel=1
pkgdesc='helper tools for the arch user repository'
arch=('any')
url=https://github.com/AladW/aurutils
license=('ISC')
source=("https://github.com/AladW/aurutils/archive/$pkgver.tar.gz")
md5sums=('f24bbdce508e99a80d7608aabcb51122')
depends=('pacman>=5.0' 'git' 'repose' 'jshon' 'pacutils' 'expac' 'aria2' 'datamash')
checkdepends=('shellcheck')
makedepends=('git')
optdepends=('devtools: aurbuild -c'
'vifm: improved build file interaction')
check() {
cd "$pkgname-$pkgver"
LANG=C shellcheck -e 2016 -x bin/*
}
package() {
cd "$pkgname-$pkgver"
install -d "$pkgdir"/usr/{bin,share{/man/man1,{/licenses,/doc}/aurutils}}
install -m755 bin/* "$pkgdir"/usr/bin/
install -m644 LICENSE "$pkgdir"/usr/share/licenses/aurutils/
install -m644 CREDITS README "$pkgdir"/usr/share/doc/aurutils/
install -m644 doc/* "$pkgdir"/usr/share/man/man1/
}