blob: c616ab1a0dc71e2343d1c1a412a70e083ad7b7cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
pkgname=pbs-git
pkgver=r13.15ba7a3
pkgrel=1
pkgdesc="less styles for pb"
arch=('any')
url="https://github.com/ptpb/pbs"
license=('GPLv3')
makedepends=('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 js; do
install -D -m755 -d "${pkgdir}/usr/share/pbs/${resource}"
install -D -m644 dist/$resource/* "${pkgdir}/usr/share/pbs/${resource}"
done
}
|