summaryrefslogtreecommitdiffstats
path: root/libraries/libEMF/libEMF.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libEMF/libEMF.SlackBuild')
-rw-r--r--libraries/libEMF/libEMF.SlackBuild23
1 files changed, 13 insertions, 10 deletions
diff --git a/libraries/libEMF/libEMF.SlackBuild b/libraries/libEMF/libEMF.SlackBuild
index d4e6bf98d4..88889330d1 100644
--- a/libraries/libEMF/libEMF.SlackBuild
+++ b/libraries/libEMF/libEMF.SlackBuild
@@ -6,8 +6,9 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libEMF
-VERSION=${VERSION:-1.0.7}
-BUILD=${BUILD:-2}
+SRCNAM=libemf
+VERSION=${VERSION:-1.0.13}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -19,6 +20,9 @@ if [ -z "$ARCH" ]; then
esac
fi
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -47,15 +51,15 @@ 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 $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \+ -o \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# static library is activated because the perl extension needs it
CFLAGS="$SLKCFLAGS" \
@@ -67,12 +71,13 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--enable-editing \
+ --disable-static \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
@@ -80,8 +85,6 @@ cp -a AUTHORS ChangeLog COPYING COPYING.LIB INSTALL NEWS README \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-rm -f $PKG/usr/lib*/*.la
-
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc