archlinux-pkgbuilds/PKGBUILD

32 lines
1,011 B
Text
Raw Normal View History

2016-03-26 20:17:11 +01:00
pkgname=aurutils
2016-05-02 09:45:44 +02:00
pkgver=0.8.4
2016-04-01 04:56:08 +02:00
pkgrel=1
2016-04-01 04:57:05 +02:00
pkgdesc='helper tools for the arch user repository'
2016-03-26 20:17:11 +01:00
arch=('any')
2016-03-28 01:24:02 +02:00
url=https://github.com/AladW/aurutils
2016-03-26 20:17:11 +01:00
license=('ISC')
2016-05-02 09:45:44 +02:00
source=("$url/archive/$pkgver.tar.gz")
md5sums=('e1d0033cc330e1901710c7970823a9f2')
depends=('pacman>=5.0' 'git' 'jshon' 'expac' 'aria2>=1.23.0')
'repose' 'pacutils' 'datamash'
2016-03-26 20:17:11 +01:00
checkdepends=('shellcheck')
makedepends=('git')
2016-05-02 09:45:44 +02:00
optdepends=('devtools: build in an nspawn container'
2016-03-26 20:17:11 +01:00
'vifm: improved build file interaction')
check() {
2016-03-31 04:35:29 +02:00
cd "$pkgname-$pkgver"
2016-05-02 09:47:59 +02:00
LANG=C shellcheck -e 2016 -x bin/*
2016-03-26 20:17:11 +01:00
}
package() {
2016-03-31 04:35:29 +02:00
cd "$pkgname-$pkgver"
2016-05-02 09:47:59 +02:00
install -d "$pkgdir"/usr/{bin,share{/zsh/site-functions,/man/man1,{/licenses,/doc}/aurutils}}
install -m755 bin/* "$pkgdir"/usr/bin/
install -m644 completions/* "$pkgdir"/usr/share/zsh/site-functions/
install -m644 doc/* "$pkgdir"/usr/share/man/man1/
install -m644 LICENSE "$pkgdir"/usr/share/licenses/aurutils/
install -m644 CREDITS README "$pkgdir"/usr/share/doc/aurutils/
2016-03-26 20:17:11 +01:00
}