summaryrefslogtreecommitdiff
path: root/graphics/pcx-pixbuf-loader/pcx-pixbuf-loader.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2019-12-29 11:11:43 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-12-29 11:11:43 +0700
commite51925f6cea571efc9231046e8e3fd77ba263dfb (patch)
tree24612ead50d7c7b8a14126a89667db6d6223c7d1 /graphics/pcx-pixbuf-loader/pcx-pixbuf-loader.SlackBuild
parent71d28f216c42475bf787076e54568d62927a711f (diff)
downloadslackbuilds-e51925f6cea571efc9231046e8e3fd77ba263dfb.tar.gz
graphics/pcx-pixbuf-loader: Added (PCX loader for gdk-pixbuf2).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/pcx-pixbuf-loader/pcx-pixbuf-loader.SlackBuild')
-rw-r--r--graphics/pcx-pixbuf-loader/pcx-pixbuf-loader.SlackBuild79
1 files changed, 79 insertions, 0 deletions
diff --git a/graphics/pcx-pixbuf-loader/pcx-pixbuf-loader.SlackBuild b/graphics/pcx-pixbuf-loader/pcx-pixbuf-loader.SlackBuild
new file mode 100644
index 0000000000..e968158cfd
--- /dev/null
+++ b/graphics/pcx-pixbuf-loader/pcx-pixbuf-loader.SlackBuild
@@ -0,0 +1,79 @@
+#!/bin/sh
+
+# Slackware build script for pcx-pixbuf-loader
+
+# Written by B. Watson (yalhcru@gmail.com)
+
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+PRGNAM=pcx-pixbuf-loader
+VERSION=${VERSION:-20140824.6211fd8}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+
+mkdir build
+cd build
+ CFLAGS="-Wl,-s $SLKCFLAGS" \
+ CXXFLAGS="-Wl,-s $SLKCFLAGS" \
+ meson .. \
+ --buildtype=release \
+ --infodir=/usr/info \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --prefix=/usr \
+ --sysconfdir=/etc
+ ninja
+ DESTDIR=$PKG ninja install
+cd ..
+
+DOCDIR=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $DOCDIR
+cat README > $DOCDIR/README
+cat $CWD/$PRGNAM.SlackBuild > $DOCDIR/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}