libraries/libnxml: Updated for version 0.18.3

This commit is contained in:
Kristaps Esterlins 2010-05-13 00:31:25 +02:00 committed by Robby Workman
parent 576c24c9bf
commit e014c6647c
2 changed files with 14 additions and 6 deletions

View file

@ -3,11 +3,11 @@
# Slackware build script for libnxml
# Written by Kristaps Esterlins <esterlinsh[at]gmail.com>
PRGNAM=libnxml
PRGNAM=libnxml
VERSION=0.18.3
ARCH=${ARCH:-i486}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
@ -16,10 +16,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi
set -e
@ -41,6 +44,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
@ -52,8 +56,10 @@ make
make install DESTDIR=$PKG
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
@ -65,4 +71,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -2,7 +2,9 @@ PRGNAM="libnxml"
VERSION="0.18.3"
HOMEPAGE="http://www.autistici.org/bakunin/libnxml/doc/"
DOWNLOAD="http://www.autistici.org/bakunin/libnxml/libnxml-0.18.3.tar.gz"
DOWNLOAD_x86_64=""
MD5SUM="857f43970e7f0724d28f4ddc87085daf"
MD5SUM_x86_64=""
MAINTAINER="Kristaps Esterlins"
EMAIL="esterlins@gmail.com"
APPROVED="rworkman"