diff options
author | Zack Buhman | 2017-05-22 14:40:10 -0500 |
---|---|---|
committer | Zack Buhman | 2017-05-22 14:40:10 -0500 |
commit | b16d6ffe507c3b69a7b9ce7bbe328aaa42db1899 (patch) | |
tree | 9fd0e8b844ea21075ec3c11ab149dfc3b8215afa /PKGBUILD | |
download | aur-b16d6ffe507c3b69a7b9ce7bbe328aaa42db1899.tar.gz |
initial
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..90d331d0d8e8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +pkgname=pbs-git +pkgver=r12.f229c1b +pkgrel=1 +pkgdesc="less styles for pb" +arch=('any') +url="https://github.com/ptpb/pbs" +license=('GPLv3') + +makedepends=('strace' 'libxml2' 'git' 'npm' 'grunt-cli' 'graphicsmagick') + +provides=('pbs') + +source=("$pkgname::git+https://github.com/ptpb/pbs.git") +md5sums=('SKIP') + +pkgver() { + cd $pkgname + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd $pkgname + + npm install + grunt +} + +package() { + cd $pkgname + + for resource in css images; do + install -D -m755 -d "${pkgdir}/usr/share/$pkgname/${resource}" + install -D -m644 dist/$resource/* "${pkgdir}/usr/share/$pkgname/${resource}" + done +} |