summaryrefslogtreecommitdiff
path: root/libraries/libicns
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-10-19 20:29:39 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-10-29 17:07:17 +0700
commitf1dd51c4c6edd35a7f7f7341eefe2182bf769f1f (patch)
treec46f484f36d36e7056ed0ffaa01017e6d39446ed /libraries/libicns
parent0222d95ac47ddce2f8cfc5fa3d9ebbc4294a889c (diff)
downloadslackbuilds-f1dd51c4c6edd35a7f7f7341eefe2182bf769f1f.tar.gz
libraries/libicns: Get rid of .la file.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libicns')
-rw-r--r--libraries/libicns/libicns.SlackBuild38
1 files changed, 17 insertions, 21 deletions
diff --git a/libraries/libicns/libicns.SlackBuild b/libraries/libicns/libicns.SlackBuild
index 25fe5e2d81..f09a7a2e49 100644
--- a/libraries/libicns/libicns.SlackBuild
+++ b/libraries/libicns/libicns.SlackBuild
@@ -6,11 +6,13 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20211019 bkw: BUILD=2, get rid of .la file.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libicns
VERSION=${VERSION:-0.8.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -22,9 +24,6 @@ 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
@@ -34,6 +33,9 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+DOC=/usr/doc/$PRGNAM-$VERSION
+PKGDOC=$PKG/$DOC
+
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
@@ -57,35 +59,29 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$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 \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
-
-CFLAGS="$SLKCFLAGS $PNGHACK" \
-CXXFLAGS="$SLKCFLAGS $PNGHACK" \
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --docdir=$DOC \
--disable-static \
--build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
+gzip -9 $PKG/usr/man/man?/*.*
+rm -f $PKG/usr/lib*/*.la
-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 \
- AUTHORS COPYING* ChangeLog DEVNOTES NEWS README TODO \
- $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+mkdir -p $PKGDOC
+cp -a AUTHORS COPYING* ChangeLog DEVNOTES NEWS README TODO $PKGDOC
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc