diff options
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 +} |