PKGBUILDs/alarm/git-annex/PKGBUILD

35 lines
973 B
Bash
Raw Normal View History

buildarch=6
pkgname="git-annex"
pkgver=3.20121017
pkgrel=1
pkgdesc="manage files with git, without checking their contents into git"
url="http://git-annex.branchable.com/"
license=("GPL3")
arch=("arm" "armv7h")
depends=("libffi" "gmp" "git" "uuid" "rsync" "pcre" "curl" "openssh" "libidn" "gsasl")
makedepends=("binutils")
options=("!docs")
if [ "${CARCH}" = "armv7h" ]; then
source=("http://ftp.uk.debian.org/debian/pool/main/g/git-annex/git-annex_${pkgver}_armhf.deb")
md5sums=("2af85ea0582aa1f2f67e35d9df1fecb9")
else
source=("http://ftp.uk.debian.org/debian/pool/main/g/git-annex/git-annex_${pkgver}_armel.deb")
md5sums=("dd23cf0910bf2f8268c8088a2981eff0")
fi
build() {
if [ "${CARCH}" = "armv7h" ]; then
ar x "git-annex_${pkgver}_armhf.deb"
else
ar x "git-annex_${pkgver}_armel.deb"
fi
tar -zxf data.tar.gz -C "${pkgdir}"
sed -re "s/(libpcre\.so\.)3/\11/g" -e "s/(libffi\.so\.)5/\16/g" \
-i "${pkgdir}/usr/bin/git-annex"
}
# vim: set noet ff=unix: