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 | |
4 | # Depends on: expat, curl, python | |
5 | # Nice to have: tk | |
6 | ||
7 | name=git | |
ad024e1b VM |
8 | version=1.7.7.3 |
9 | release=1 | |
10 | source=(https://git-core.googlecode.com/files/$name-{,manpages-}$version.tar.gz) | |
c07de3e5 JB |
11 | |
12 | build() { | |
13 | cd $name-$version | |
14 | ||
15 | # install Error.pm. this pretty much sucks, but i'm too lazy to | |
16 | # investigate whether there's a better way. | |
17 | sed -i -e '23,24d' -e '26d' perl/Makefile.PL | |
18 | ||
19 | make CFLAGS="$CFLAGS" prefix=/usr gitexecdir=/usr/lib/git-core \ | |
20 | DESTDIR=$PKG install | |
ad024e1b | 21 | |
c07de3e5 JB |
22 | cd $SRC |
23 | ||
24 | for i in man*; do | |
25 | install -d $PKG/usr/man/$i | |
26 | install -m 644 $i/* $PKG/usr/man/$i; | |
27 | done | |
28 | ||
29 | install -d $PKG/usr/man/man3 | |
ad024e1b | 30 | mv $PKG/usr/share/man/man3/{Git,private-Error}.3pm \ |
c07de3e5 JB |
31 | $PKG/usr/man/man3/ |
32 | rmdir $PKG/usr/share/{man/man3,man} | |
33 | ||
34 | find $PKG -name perllocal.pod -delete | |
35 | find $PKG -name .packlist -delete | |
36 | ||
37 | rm -rf $PKG/usr/share/gitk/lib/msgs | |
38 | rmdir $PKG/usr/share/gitk/{lib,} | |
39 | } |