# Maintainer: Caleb Maclennan # # Contributor: Andy Weidenbaum # Contributor: Hugo Osvaldo Barrera # Contributor: noirbizarre # Contributor: Wael Nasreddine pkgname=git-crypt-git pkgver=0.5.0_4_g788a6a9 pkgrel=2 _branch=master pkgdesc="Transparent file encryption in Git" arch=('i686' 'x86_64') url="http://www.agwa.name/projects/${pkgname%-git}/" license=('GPL3') makedepends=('git') depends=('git' 'openssl-1.0') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") source=("git://github.com/AGWA/${pkgname%-git}.git#branch=$_branch") sha256sums=('SKIP') pkgver() { cd "${pkgname%-git}" git describe --long --tags | sed 's/^v//;s/-/_/g' } build() { cd "${pkgname%-git}" # https://github.com/AGWA/git-crypt/issues/111 export PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig export CXXFLAGS+=" -I/usr/include/openssl-1.0" export LDFLAGS+=" -L/usr/lib/openssl-1.0 -lssl" make PREFIX=/usr } package() { cd "${pkgname%-git}" # https://github.com/AGWA/git-crypt/issues/111 export PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig export CXXFLAGS+=" -I/usr/include/openssl-1.0" export LDFLAGS+=" -L/usr/lib/openssl-1.0 -lssl" make PREFIX=/usr DESTDIR="${pkgdir}" install }