-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
46 lines (37 loc) · 875 Bytes
/
PKGBUILD
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
36
37
38
39
40
41
42
43
44
45
46
# Original PKGBUILD by Taylor Venable <[email protected]>
pkgname=piqi-git
pkgver=20140401
pkgrel=1
pkgdesc='Universal schema language for JSON, XML, Protocol Buffers'
arch=('i686' 'x86_64')
url='http://piqi.org/'
license=('Apache')
makedepends=('git' 'ocaml' 'ocaml-findlib' 'pandoc')
provides=('piqi')
conflicts=('piqi')
options=('!strip' '!makeflags' 'docs')
_gitroot='git://github.com/alavrik/piqi.git'
_gitname='piqi'
build() {
cd $srcdir
if [[ -d $srcdir/$_gitname ]]; then
cd $_gitname && git pull origin
else
git clone --depth=1 $_gitroot
cd $_gitname
fi
git clean -ffdx
export OCAMLPATH=
./configure --prefix="/usr"
make deps
make
make doc
}
_docdir=/usr/share/doc/piqi/
package() {
cd $_gitname
make install DESTDIR="$pkgdir"
install -d $pkgdir/$_docdir
install -m 644 -t $pkgdir/$_docdir \
doc/*.html
}