|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
# Build script for Slackware
|
|
|
|
|
# Copyright (C) 2009-2014,2016 Damien Goutte-Gattat
|
|
|
|
|
# Copyright (C) 2009-2014,2016,2017 Damien Goutte-Gattat
|
|
|
|
|
#
|
|
|
|
|
# Redistribution and use of this script, with or without modifications,
|
|
|
|
|
# is permitted provided that the following conditions are met:
|
|
|
|
@ -30,7 +30,7 @@
|
|
|
|
|
|
|
|
|
|
# Source package infos
|
|
|
|
|
NAMESRC=${NAMESRC:-biopython}
|
|
|
|
|
VERSION=${VERSION:-1.67}
|
|
|
|
|
VERSION=${VERSION:-1.70}
|
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-${VERSION//./}.tar.gz}
|
|
|
|
|
WGET=${WGET:-https://github.com/biopython/biopython/archive/$ARCHIVE}
|
|
|
|
|
|
|
|
|
@ -77,7 +77,7 @@ if [ ! -r $ARCHIVE ]; then
|
|
|
|
|
wget -c -O $ARCHIVE.part "$WGET"
|
|
|
|
|
mv $ARCHIVE.part $ARCHIVE
|
|
|
|
|
fi
|
|
|
|
|
sha1sum -c $ARCHIVE.sha1
|
|
|
|
|
sha256sum -c $ARCHIVE.sha256
|
|
|
|
|
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
|
|
|
|
|
|
|
|
|
|
# Compile
|
|
|
|
@ -96,8 +96,8 @@ find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
|
|
|
|
|
|
|
|
|
|
# Install the documentation
|
|
|
|
|
mkdir -p $PKG/usr/doc/$NAMESRC-$VERSION
|
|
|
|
|
install -m 644 CONTRIB DEPRECATED LICENSE NEWS README \
|
|
|
|
|
$CWD/Tutorial.pdf $PKG/usr/doc/$NAMESRC-$VERSION
|
|
|
|
|
install -m 644 CONTRIB.rst CONTRIBUTING.rst DEPRECATED.rst LICENSE.rst \
|
|
|
|
|
NEWS.rst README.rst $CWD/Tutorial.pdf $PKG/usr/doc/$NAMESRC-$VERSION
|
|
|
|
|
|
|
|
|
|
# Copy slack-desc file
|
|
|
|
|
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
|
|
|
|
|