Browse Source

ap/bibxmlutils: Updated for Slackware-13.0.

slackware-14.2
Damien Goutte-Gattat 12 years ago
parent
commit
9f511f4001
  1. 1
      ap/bibxmlutils/bibxmlutils-0.1.tar.gz.sha1
  2. 25
      ap/bibxmlutils/bibxmlutils.SlackBuild

1
ap/bibxmlutils/bibxmlutils-0.1.tar.gz.sha1

@ -0,0 +1 @@
6fdb03499f908c5a15373a9596d489702b29d48b bibxmlutils-0.1.tar.gz

25
ap/bibxmlutils/bibxmlutils.SlackBuild

@ -32,15 +32,16 @@ ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://www.incenp.org/dvlpt/$ARCHIVE}
# Build infos
NAMETGZ=${NAMETGZ:-bibxmlutils}
BUILD=${BUILD:-1GGD}
NAMEPKG=${NAMEPKG:-bibxmlutils}
BUILD=${BUILD:-2GGD}
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 # Quit if a command returns non-zero
@ -69,11 +70,11 @@ x86_64)
esac
# Get and verify the source archive
#if [ ! -r $ARCHIVE ]; then
# wget -c -O $ARCHIVE.part "$WGET"
# mv $ARCHIVE.part $ARCHIVE
#fi
#sha1sum -c $ARCHIVE.sha1
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
@ -87,11 +88,7 @@ CXXFLAGS=$CPUOPT \
--prefix=/usr \
--docdir=/usr/doc/$NAME
make -j $JOBS
make install DESTDIR=$PKG
# Strip binaries
find $PKG | xargs file | grep "ELF 32-bit LSB" | cut -d : -f 1 | \
xargs strip --strip-unneeded 2> /dev/null
make install-strip DESTDIR=$PKG
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
@ -101,7 +98,7 @@ 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/$NAME
"

Loading…
Cancel
Save