diff options
Diffstat (limited to 'academic/vcftools/vcftools.SlackBuild')
-rw-r--r-- | academic/vcftools/vcftools.SlackBuild | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/academic/vcftools/vcftools.SlackBuild b/academic/vcftools/vcftools.SlackBuild index 4c69a76a95695..624601bdb34b0 100644 --- a/academic/vcftools/vcftools.SlackBuild +++ b/academic/vcftools/vcftools.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for vcftools -# Copyright 2013-2014 Petar Petrov, petar.petrov@student.oulu.fi +# Copyright 2013-2015 Petar Petrov, petar.petrov@student.oulu.fi # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=vcftools -VERSION=${VERSION:-0.1.12a} +VERSION=${VERSION:-0.1.12b} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -69,22 +69,21 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Thanks to Debian for the patches -patch -p1 -i $CWD/make.patch +# Thanks to Debian for the patch patch -p1 -i $CWD/use-dpkg-buildflags.patch # Set the proper, architecture-specific path sed -i "s:/lib/perl5/site_perl:/lib${LIBDIRSUFFIX}/perl5:g" Makefile -# It seems that if you run just "make" as root, it will _install_ the -# executables and perl files before the package is even created... CFLAGS="$SLKCFLAGS" \ CPPFLAGS="$SLKCFLAGS" \ PREFIX=$PKG/usr \ make install -# Copy man page -install -D -m644 cpp/vcftools.1.gz $PKG/usr/man/man1/vcftools.1.gz +# Remove this and copy the man page to its proper place +rm -rf $PKG/usr/bin/man1 +mkdir -p $PKG//usr/man/man1 +cp cpp/vcftools.1 $PKG/usr/man/man1 # Copy examples mkdir -p $PKG/usr/share/$PRGNAM @@ -93,6 +92,9 @@ cp -a examples $PKG/usr/share/$PRGNAM find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a README.txt perl/ChangeLog website/*.pdf $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |