summaryrefslogtreecommitdiff
path: root/academic/vcftools/vcftools.SlackBuild
diff options
context:
space:
mode:
authorPetar Petrov <petar.petrov@student.oulu.fi>2015-02-04 20:11:28 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-02-05 06:31:09 +0700
commitab233795246db630e08c8209fe628490d0c0ff3b (patch)
tree8526774a43a32bcd78180ab915e146f0fac04a18 /academic/vcftools/vcftools.SlackBuild
parent7b29b771ab8ce72d0ccb7778035d3b5e2a7ec5da (diff)
downloadslackbuilds-ab233795246db630e08c8209fe628490d0c0ff3b.tar.gz
academic/vcftools: Updated for version 0.1.12b.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/vcftools/vcftools.SlackBuild')
-rw-r--r--academic/vcftools/vcftools.SlackBuild18
1 files changed, 10 insertions, 8 deletions
diff --git a/academic/vcftools/vcftools.SlackBuild b/academic/vcftools/vcftools.SlackBuild
index 4c69a76a95..624601bdb3 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