Last active
December 30, 2015 07:19
-
-
Save yfyf/7794984 to your computer and use it in GitHub Desktop.
piqi PKGBUILD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Taylor Venable <[email protected]> | |
pkgname=piqi-git | |
pkgver=20131204 | |
pkgrel=1 | |
pkgdesc='A set of languages and open-source tools for working with structured data.' | |
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 -C doc | |
} | |
_mandir=/usr/share/man/man1/ | |
package() { | |
cd $_gitname | |
make install DESTDIR="$pkgdir" | |
install -d $pkgdir/$_mandir | |
install -m 644 -t $pkgdir/$_mandir \ | |
doc/piqi.1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The PKGBUILD now continues its life here: https://github.com/piqi/piqi-arch/