Browse Source

ap/acedb: Cleaned up for Slackware-13.0.

slackware-14.2
Damien Goutte-Gattat 13 years ago
parent
commit
d322e475ef
  1. 25
      ap/acedb/acedb.SlackBuild

25
ap/acedb/acedb.SlackBuild

@ -30,20 +30,21 @@ VERSION=${VERSION:-4.9.39}
BASEURL=${BASEURL:-ftp://ftp.sanger.ac.uk/pub/acedb/SUPPORTED}
# Build infos
NAMETGZ=${NAMETGZ:-acedb}
BUILD=${BUILD:-2GGD}
NAMEPKG=${NAMEPKG:-acedb}
BUILD=${BUILD:-3GGD}
ARCH=${ARCH:-i486}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMETGZ}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
set -e
NAME=$NAMETGZ-$VERSION
NAME=$NAMEPKG-$VERSION
# Sanity checks
if [ $UID -eq 0 ]; then
@ -79,18 +80,18 @@ done
sha1sum -c checksums
# Build and install the binaries
mkdir -p $TMP/$NAMETGZ
tar xf $CWD/ACEDB-source.$VERSION.tar.gz -C $TMP/$NAMETGZ
cd $TMP/$NAMETGZ
mkdir -p $TMP/$NAMEPKG
tar xf $CWD/ACEDB-source.$VERSION.tar.gz -C $TMP/$NAMEPKG
cd $TMP/$NAMEPKG
ACEDB_MACHINE=LINUX_4 make -j $JOBS COPT="$CPUOPT" || true
mkdir -p $PKG/usr/bin
find bin.LINUX_4 -type f -perm 755 -exec install -m 755 '{}' $PKG/usr/bin \;
find $PKG/usr/bin -exec strip --strip-unneeded '{}' \;
# Install the sample database and the helper scripts
mkdir -p $PKG/usr/share/$NAMETGZ/{demo,tools}
tar xf $CWD/ACEDB-demo.$VERSION.tar.gz -C $PKG/usr/share/$NAMETGZ/demo
tar xf $CWD/ACEDB-tools.$VERSION.tar.gz -C $PKG/usr/share/$NAMETGZ/tools
mkdir -p $PKG/usr/share/$NAMEPKG/{demo,tools}
tar xf $CWD/ACEDB-demo.$VERSION.tar.gz -C $PKG/usr/share/$NAMEPKG/demo
tar xf $CWD/ACEDB-tools.$VERSION.tar.gz -C $PKG/usr/share/$NAMEPKG/tools
# Install the docs
mkdir -p $PKG/usr/doc/$NAME/{developers,users}
@ -111,9 +112,9 @@ cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMETGZ-$VERSION-$ARCH-$BUILD.tgz
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAMETGZ
rm -rf $TMP/$NAMEPKG
"
if type -p fakeroot ; then

Loading…
Cancel
Save