Commit | Line | Data |
---|---|---|
c97bca63 JB |
1 | # Description: Directory content manager |
2 | # URL: http://www.kernel.org/pub/software/scm/git/docs | |
3 | # Maintainer: Tilman Sauerbeck tilman at crux dot nu | |
38b50d66 | 4 | # Arch Maintainer System Team devel at crux-arm dot nu |
c97bca63 JB |
5 | # Depends on: expat curl |
6 | # Nice to have: tk | |
7 | ||
8 | name=git | |
73b47da1 | 9 | version=1.7.0 |
c97bca63 JB |
10 | release=1 |
11 | source=(http://www.kernel.org/pub/software/scm/$name/$name-{,manpages-}$version.tar.bz2) | |
12 | ||
13 | build() { | |
14 | cd $name-$version | |
15 | ||
16 | # install Error.pm. this pretty much sucks but i'm too lazy to | |
17 | # investigate whether there's a better way. | |
73b47da1 JB |
18 | sed -i perl/Makefile.PL -e '23,24d' -e '26d' |
19 | sed -i Makefile -e 's|CFLAGS =|CFLAGS :=|' | |
c97bca63 | 20 | |
23b573da JB |
21 | make CC="$CC" CFLAGS="$CFLAGS -I$CLFS/usr/include" \ |
22 | prefix=/usr gitexecdir=/usr/lib/git-core \ | |
73b47da1 | 23 | DESTDIR=$PKG install |
c97bca63 JB |
24 | |
25 | cd $SRC | |
26 | ||
27 | for i in man*; do | |
28 | install -d $PKG/usr/man/$i | |
29 | install -m 644 $i/* $PKG/usr/man/$i; | |
30 | done | |
31 | ||
32 | install -d $PKG/usr/man/man3 | |
33 | mv $PKG/usr/share/man/man3/{Git,private-Error}.3pm \ | |
34 | $PKG/usr/man/man3/ | |
35 | rmdir $PKG/usr/share/{man/man3,man} | |
36 | ||
37 | find $PKG -name perllocal.pod -delete | |
38 | find $PKG -name .packlist -delete | |
39 | ||
40 | rm -rf $PKG/usr/share/gitk/lib/msgs | |
41 | rmdir $PKG/usr/share/gitk/{lib,} | |
42 | } |