Commit | Line | Data |
---|---|---|
c07de3e5 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 | |
bbb5ba2e | 4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
c07de3e5 JB |
5 | # Depends on: expat, curl, python |
6 | # Nice to have: tk | |
7 | ||
8 | name=git | |
ad024e1b VM |
9 | version=1.7.7.3 |
10 | release=1 | |
11 | source=(https://git-core.googlecode.com/files/$name-{,manpages-}$version.tar.gz) | |
c07de3e5 JB |
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. | |
18 | sed -i -e '23,24d' -e '26d' perl/Makefile.PL | |
19 | ||
20 | make CFLAGS="$CFLAGS" prefix=/usr gitexecdir=/usr/lib/git-core \ | |
21 | DESTDIR=$PKG install | |
ad024e1b | 22 | |
c07de3e5 JB |
23 | cd $SRC |
24 | ||
25 | for i in man*; do | |
26 | install -d $PKG/usr/man/$i | |
27 | install -m 644 $i/* $PKG/usr/man/$i; | |
28 | done | |
29 | ||
30 | install -d $PKG/usr/man/man3 | |
ad024e1b | 31 | mv $PKG/usr/share/man/man3/{Git,private-Error}.3pm \ |
c07de3e5 JB |
32 | $PKG/usr/man/man3/ |
33 | rmdir $PKG/usr/share/{man/man3,man} | |
34 | ||
35 | find $PKG -name perllocal.pod -delete | |
36 | find $PKG -name .packlist -delete | |
37 | ||
38 | rm -rf $PKG/usr/share/gitk/lib/msgs | |
39 | rmdir $PKG/usr/share/gitk/{lib,} | |
40 | } |