blob: dec7a3acc1c37f59529bf470c95fba22e9bc3be4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# $Id: PKGBUILD 12487 2008-09-14 16:45:00Z dan $
# Maintainer: Dan McGee <dan@archlinux.org>
pkgname=git
pkgver=1.6.0.2
pkgrel=3
pkgdesc="GIT - the stupid content tracker"
arch=(i686 x86_64)
url="http://git.or.cz/"
license=('GPL2')
depends=('curl' 'expat>=2.0' 'perl-error' 'perl>=5.10.0')
optdepends=('tk: gitk and git gui'
'perl-libwww: 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 THREADED_DELTA_SEARCH=1 \
prefix=/usr gitexecdir=/usr/lib/git-core || return 1
make THREADED_DELTA_SEARCH=1 \
prefix=/usr gitexecdir=/usr/lib/git-core \
INSTALLDIRS=vendor DESTDIR=${pkgdir} install
# let's plop gitweb in /usr/share
mkdir -p $pkgdir/usr/share/ || return 1
cp -dR ./gitweb $pkgdir/usr/share/gitweb || return 1
#bash completion
mkdir -p $pkgdir/etc/bash_completion.d/ || return 1
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=('1e4d9bfc1cb0abf165d4de93b5172324'
'30bd29d96b4576ef8b7b48ad791f613e')
|