summaryrefslogtreecommitdiffstats
path: root/git/Pkgfile.old
blob: 20f43fccc87f2c445442d948111d6f27cb7f2029 (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
# Description: Directory content manager
# URL: http://www.kernel.org/pub/software/scm/git/docs
# Maintainer: Tilman Sauerbeck, tilman at crux dot nu
# Depends on: expat, curl, python
# Nice to have: tk

name=git
version=1.7.3.1
release=1
source=(http://www.kernel.org/pub/software/scm/$name/$name-{,manpages-}$version.tar.bz2)

build() {
	cd $name-$version

	# install Error.pm. this pretty much sucks, but i'm too lazy to
	# investigate whether there's a better way.
	sed -i -e '23,24d' -e '26d' perl/Makefile.PL

	make CFLAGS="$CFLAGS" prefix=/usr gitexecdir=/usr/lib/git-core \
	     DESTDIR=$PKG install

	cd $SRC

	for i in man*; do
		install -d $PKG/usr/man/$i
		install -m 644 $i/* $PKG/usr/man/$i;
	done

	install -d $PKG/usr/man/man3
	mv $PKG/usr/share/man/man3/{Git,private-Error}.3pm \
		$PKG/usr/man/man3/
	rmdir $PKG/usr/share/{man/man3,man}

	find $PKG -name perllocal.pod -delete
	find $PKG -name .packlist -delete

	rm -rf $PKG/usr/share/gitk/lib/msgs
	rmdir $PKG/usr/share/gitk/{lib,}
}