summaryrefslogtreecommitdiff
path: root/academic/vcftools/vcftools.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/vcftools/vcftools.SlackBuild')
-rw-r--r--academic/vcftools/vcftools.SlackBuild37
1 files changed, 19 insertions, 18 deletions
diff --git a/academic/vcftools/vcftools.SlackBuild b/academic/vcftools/vcftools.SlackBuild
index 624601bdb3..7cfe136df6 100644
--- a/academic/vcftools/vcftools.SlackBuild
+++ b/academic/vcftools/vcftools.SlackBuild
@@ -23,10 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=vcftools
-VERSION=${VERSION:-0.1.12b}
+VERSION=${VERSION:-0.1.14_2_g78add55}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+SRCVER=v0.1.14-2-g78add55
+GITVER=78add55
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
@@ -59,9 +62,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf ${PRGNAM}_${VERSION}
-tar xvf $CWD/${PRGNAM}_${VERSION}.tar.gz
-cd ${PRGNAM}_${VERSION}
+rm -rf ${PRGNAM}-${PRGNAM}-${SRCVER}
+tar xvf $CWD/${PRGNAM}-${PRGNAM}-${SRCVER}.tar.gz
+cd ${PRGNAM}-${PRGNAM}-${GITVER}
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -69,21 +72,19 @@ 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 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
-
+./autogen.sh
CFLAGS="$SLKCFLAGS" \
CPPFLAGS="$SLKCFLAGS" \
-PREFIX=$PKG/usr \
-make install
-
-# 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
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --build=$ARCH-slackware-linux
+make
+make DESTDIR=$PKG install
# Copy examples
mkdir -p $PKG/usr/share/$PRGNAM
@@ -96,7 +97,7 @@ 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
+cp -a README.md src/perl/ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cat $CWD/References > $PKG/usr/doc/$PRGNAM-$VERSION/References