# Maintainer: Nicolas Reynolds # Based on haskell-git-annex # Run `makepkg -sp SRCBUILD` if you want to update the source tarball # hslua fails if LANG is empty or C test -z "$LANG" && export LANG="en_US.utf8" pkgname=git-annex-static _pkgname=git-annex pkgver=5.20150317 pkgrel=1 _srcrel=1 pkgdesc='Manage files with git, without checking their contents in' url='http://git-annex.branchable.com/' license=('GPL') arch=('i686' 'x86_64') depends=('git' 'gsasl') makedepends=('ghc' 'sh' 'cabal-install' 'alex' 'happy') options=(strip !makeflags !distcc !emptydirs) source=(https://repo.parabola.nu/other/git-annex-static/${_pkgname}-${pkgver}-${_srcrel}-any.src.tar.xz{,.sig} SRCBUILD) replaces=('git-annex') provides=('git-annex') # PKGBUILD functions build() { mkdir -p ${srcdir}/{build,${_pkgname}-${pkgver}} cd ${srcdir}/${_pkgname}-${pkgver} export PATH=${srcdir}/build/usr/bin:$PATH while read _hkpkg extra; do # Skip already built [ -d "${srcdir}/build/usr/lib/i386-linux-ghc-7.8.3/$_hkpkg" ] && continue pushd ${srcdir}/${_pkgname}-${pkgver}/${_hkpkg} >/dev/null || continue msg2 "Building $_hkpkg" HOME=${srcdir}/${_pkgname}-${pkgver} \ cabal install --prefix=${srcdir}/build/usr popd >/dev/null done