Skip to content

Instantly share code, notes, and snippets.

@yfyf
Last active December 30, 2015 07:19
Show Gist options
  • Save yfyf/7794984 to your computer and use it in GitHub Desktop.
Save yfyf/7794984 to your computer and use it in GitHub Desktop.
piqi PKGBUILD
# Maintainer: Taylor Venable <taylor@metasyntax.net>
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
}
@yfyf
Copy link
Author

yfyf commented Dec 6, 2013

The PKGBUILD now continues its life here: https://github.com/piqi/piqi-arch/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment