# $Id: PKGBUILD 52227 2009-09-17 02:09:45Z dan $ # Maintainer: Dan McGee pkgname=git pkgver=1.6.4.4 pkgrel=1 pkgdesc="the fast distributed version control system" arch=(i686 x86_64) url="http://git-scm.com/" license=('GPL2') depends=('curl' 'expat>=2.0' 'perl-error' 'perl>=5.10.0') optdepends=('tk: gitk and git gui' 'perl-libwww: git svn' 'perl-term-readkey: git svn' 'subversion: git svn' 'cvsps: git cvsimport') replaces=('git-core') provides=('git-core') source=("http://kernel.org/pub/software/scm/git/${pkgname}-${pkgver}.tar.bz2" \ "http://kernel.org/pub/software/scm/git/git-manpages-${pkgver}.tar.bz2") build() { cd $srcdir/$pkgname-$pkgver make prefix=/usr gitexecdir=/usr/lib/git-core || return 1 make prefix=/usr gitexecdir=/usr/lib/git-core \ NO_CROSS_DIRECTORY_HARDLINKS=1 \ INSTALLDIRS=vendor DESTDIR=${pkgdir} install || return 1 #bash completion mkdir -p $pkgdir/etc/bash_completion.d/ install -m644 ./contrib/completion/git-completion.bash $pkgdir/etc/bash_completion.d/git || return 1 # how 'bout some manpages? for mansect in man1 man5 man7; do for manpage in $srcdir/$mansect/*; do install -D -m644 $manpage $pkgdir/usr/share/man/$mansect/$(basename $manpage) done done # remove perllocal.pod, .packlist, and empty directories. rm -rf $pkgdir/usr/lib/perl5 } md5sums=('b150352782998ca1f84185e6af53ec26' '5ee880f408f1299d541c273fb7e3c1db') sha256sums=('fc7e4d6c4172c62c93d5e974019f7193b03c8bc0a1c6f3a9fcc1d0928b808d7a' 'a2b2fb1aabdbb3e1e8ae9472523b9fef23c3e8a992bb8f68f17ad832a6e59c98')