aboutsummaryrefslogtreecommitdiff
path: root/libraries/jbig2dec/jbig2dec.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/jbig2dec/jbig2dec.SlackBuild')
-rw-r--r--libraries/jbig2dec/jbig2dec.SlackBuild19
1 files changed, 11 insertions, 8 deletions
diff --git a/libraries/jbig2dec/jbig2dec.SlackBuild b/libraries/jbig2dec/jbig2dec.SlackBuild
index 640d65094d495..e3707ebb34692 100644
--- a/libraries/jbig2dec/jbig2dec.SlackBuild
+++ b/libraries/jbig2dec/jbig2dec.SlackBuild
@@ -4,9 +4,15 @@
# Written by Hubert Hesse (slackbuilds@hubertscorner.de)
+# Modified 20130620 by B. Watson:
+# - Took over maintenance
+# - Got rid of static library
+# - Use 'make install-strip'
+# - Added 'how to edit' stuff to slack-desc
+
PRGNAM=jbig2dec
VERSION=${VERSION:-0.11}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -60,21 +66,18 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
+ --disable-static \
+ --enable-shared \
--build=$ARCH-slackware-linux
make
-make install DESTDIR=$PKG
-
-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
+make install-strip DESTDIR=$PKG
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- README LICENSE COPYING CHANGES\
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README LICENSE COPYING CHANGES $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install