archlinux-pkgbuilds/PKGBUILD
Alad Wenter af3023ac4a 0.5.0
2016-04-08 21:11:37 +02:00

30 lines
842 B
Bash

pkgname=aurutils
pkgver=0.5.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=('dbb02815f52d31796febaf9b356d580e')
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"
shellcheck -e 2016,2174 -x bin/*
}
package() {
cd "$pkgname-$pkgver"
install -d "$pkgdir"/usr/{bin,share{/licenses,/doc}/aurutils}
install -m755 bin/* "$pkgdir"/usr/bin/
install -m644 LICENSE "$pkgdir"/usr/share/licenses/aurutils/
install -m644 README.org CREDITS doc/* "$pkgdir"/usr/share/doc/aurutils/
}