opt/git/Pkgfile
2012-06-20 19:51:36 +02:00

43 lines
1.1 KiB
Plaintext

# Description: Directory content manager
# URL: http://www.kernel.org/pub/software/scm/git/docs
# Maintainer: Thomas Penteker, tek at serverop dot de
# Packager: Tilman Sauerbeck, tilman at crux dot nu
# Depends on: expat, curl, python
# Nice to have: tk
name=git
version=1.7.11
release=1
source=(https://git-core.googlecode.com/files/$name-{,manpages-}$version.tar.gz)
build() {
cd $name-$version
# install Error.pm. this pretty much sucks, but i'm too lazy to
# investigate whether there's a better way.
sed -i -e '34,35d' -e '37d' perl/Makefile.PL
make CFLAGS="$CFLAGS" prefix=/usr gitexecdir=/usr/lib/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
find $PKG/usr/share/man/man3 -type f -exec mv '{}' $PKG/usr/man/man3 \;
rmdir $PKG/usr/share/{man/man3,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,}
rm -rf $PKG/usr/share/locale
}