git: shorten Pkgfile, based on sepens hints, thx

This commit is contained in:
Thomas Penteker 2012-06-20 21:27:55 +02:00
parent e8c57eecf0
commit dc9d5577dd
2 changed files with 10 additions and 17 deletions

View File

@ -199,6 +199,10 @@ drwxr-xr-x root/root usr/lib/perl5/site_perl/5.12/Git/
-r--r--r-- root/root usr/lib/perl5/site_perl/5.12/Git/I18N.pm
drwxr-xr-x root/root usr/lib/perl5/site_perl/5.12/Git/SVN/
-r--r--r-- root/root usr/lib/perl5/site_perl/5.12/Git/SVN/Editor.pm
-r--r--r-- root/root usr/lib/perl5/site_perl/5.12/Git/SVN/Fetcher.pm
drwxr-xr-x root/root usr/lib/perl5/site_perl/5.12/Git/SVN/Memoize/
-r--r--r-- root/root usr/lib/perl5/site_perl/5.12/Git/SVN/Memoize/YAML.pm
-r--r--r-- root/root usr/lib/perl5/site_perl/5.12/Git/SVN/Prompt.pm
-r--r--r-- root/root usr/lib/perl5/site_perl/5.12/Git/SVN/Ra.pm
drwxr-xr-x root/root usr/lib/perl5/site_perl/5.12/linux-thread-multi/
drwxr-xr-x root/root usr/lib/perl5/site_perl/5.12/linux-thread-multi/auto/
@ -380,6 +384,9 @@ drwxr-xr-x root/root usr/man/man3/
-r--r--r-- root/root usr/man/man3/Git.3pm.gz
-r--r--r-- root/root usr/man/man3/Git::I18N.3pm.gz
-r--r--r-- root/root usr/man/man3/Git::SVN::Editor.3pm.gz
-r--r--r-- root/root usr/man/man3/Git::SVN::Fetcher.3pm.gz
-r--r--r-- root/root usr/man/man3/Git::SVN::Memoize::YAML.3pm.gz
-r--r--r-- root/root usr/man/man3/Git::SVN::Prompt.3pm.gz
-r--r--r-- root/root usr/man/man3/Git::SVN::Ra.3pm.gz
drwxr-xr-x root/root usr/man/man5/
-rw-r--r-- root/root usr/man/man5/gitattributes.5.gz

View File

@ -13,12 +13,8 @@ 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
INSTALLSITEMAN3DIR=/usr/man/man3 DESTDIR=$PKG install
cd $SRC
@ -27,16 +23,6 @@ build() {
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
find $PKG \( -name perllocal.pod -o -name .packlist \) -delete
rm -rf $PKG/usr/share/{locale,gitk}
}