CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
eca4202d99939d4a06d6d6f90a430a658d6788c2
[ports/opt-arm.git] / git / Pkgfile
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
8 version=1.7.7.3
9 release=1
10 source=(https://git-core.googlecode.com/files/$name-{,manpages-}$version.tar.gz)
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
21
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
30 mv $PKG/usr/share/man/man3/{Git,private-Error}.3pm \
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 }