diff options
author | Lukc <lukc@upyum.com> | 2010-12-23 00:33:13 +0100 |
---|---|---|
committer | Lukc <lukc@upyum.com> | 2010-12-23 00:33:13 +0100 |
commit | 1916926dc70e2ab14bd2b70f4f043ab21cf96a06 (patch) | |
tree | b0c592a5df926cd372ece3a8b9cfd49796d76123 /git/Pkgfile | |
parent | b0f126ee5452c909db872cbf7221e14b6ae26fbc (diff) | |
download | devel-1916926dc70e2ab14bd2b70f4f043ab21cf96a06.tar.gz devel-1916926dc70e2ab14bd2b70f4f043ab21cf96a06.tar.bz2 devel-1916926dc70e2ab14bd2b70f4f043ab21cf96a06.tar.xz devel-1916926dc70e2ab14bd2b70f4f043ab21cf96a06.zip |
Recette de git mise à jour.
Diffstat (limited to 'git/Pkgfile')
-rw-r--r-- | git/Pkgfile | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/git/Pkgfile b/git/Pkgfile new file mode 100644 index 0000000..9570217 --- /dev/null +++ b/git/Pkgfile @@ -0,0 +1,45 @@ +description="Directory content manager." +url=http://www.kernel.org/pub/software/scm/git/docs +packager="Tilman Sauerbeck <tilman AT crux DOT nu>" +maintainer="Lukc <lukc AT upyum DOT com>" +# Arch Maintainer System Team devel at crux-arm dot nu +depends=(expat curl perl) +# Nice to have: tk + +name=git +version=1.7.3.2 +release=1 +source=(http://www.kernel.org/pub/software/scm/$name/$name-{,manpages-}$version.tar.bz2) + +build() { + cd $name-$version + + # install Error.pm. this pretty much sucks but i'm (tilman) too lazy to + # investigate whether there's a better way. + sed -i perl/Makefile.PL -e '23,24d' -e '26d' + sed -i Makefile -e 's|CFLAGS =|CFLAGS :=|' + + make ${CTARGET:+CC="$CTARGET-gcc"} CFLAGS="$CFLAGS" \ + prefix=$prefix gitexecdir=$libdir/git-core \ + DESTDIR=$PKG install + + cd $SRC + + for i in man*; do + install -d $PKG/usr/man/$i + install -m 644 $i/* $PKG/usr/man/$i; + done + + #install -d $PKG/usr/man/man3 + #mv $PKG/usr/share/man/man3/{Git,private-Error}.3pm \ + # $PKG/usr/man/man3/ + #rmdir $PKG/usr/share/{man/man3,man} + + mv $PKG/usr/man $PKG/usr/share/man + + find $PKG -name perllocal.pod -delete + find $PKG -name .packlist -delete + + rm -rf $PKG/usr/share/gitk/lib/msgs + rmdir $PKG/usr/share/gitk/{lib,} +} |