summaryrefslogtreecommitdiff
path: root/git/Pkgfile
blob: b3780975c742d17c835aac45f2599277be81aa36 (plain)
    1 # Description: Directory content manager
    2 # URL:         http://www.kernel.org/pub/software/scm/git/docs
    3 # Maintainer:  Thomas Penteker, tek at serverop dot de
    4 # Packager:    Tilman Sauerbeck, tilman at crux dot nu
    5 # Depends on:  expat, curl, python
    6 # Nice to have: tk
    7 
    8 name=git
    9 version=2.10.2
   10 release=1
   11 source=(https://www.kernel.org/pub/software/scm/git/git-{,manpages-}$version.tar.xz
   12 				git)
   13 
   14 build() {
   15 	cd $name-$version
   16 
   17 	# install Error.pm. this pretty much sucks, but i'm too lazy to
   18 	# investigate whether there's a better way.
   19 	sed -i -e '47d' -e '49d' perl/Makefile.PL
   20 
   21 	make CFLAGS="$CFLAGS" prefix=/usr gitexecdir=/usr/lib/git-core \
   22 	     INSTALLSITEMAN3DIR=/usr/share/man/man3 DESTDIR=$PKG install
   23 
   24 	cd $SRC
   25 
   26 	for i in man*; do
   27 		install -d $PKG/usr/share/man/$i
   28 		install -m 644 $i/* $PKG/usr/share/man/$i;
   29 	done
   30 
   31 	find $PKG \( -name perllocal.pod -o -name .packlist \) -delete
   32 	rm -rf $PKG/usr/share/{locale,gitk}
   33 
   34 	# install the git ports driver
   35 	install -m 755 -d $PKG/etc/ports/drivers
   36 	install -m 755 $SRC/git $PKG/etc/ports/drivers/git
   37 
   38 }

Generated by cgit