summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
author B. Watson2019-12-29 05:11:43 +0100
committer Willy Sudiarto Raharjo2019-12-29 05:11:43 +0100
commite51925f6cea571efc9231046e8e3fd77ba263dfb (patch)
tree24612ead50d7c7b8a14126a89667db6d6223c7d1 /graphics
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')
-rw-r--r--graphics/pcx-pixbuf-loader/README4
-rw-r--r--graphics/pcx-pixbuf-loader/doinst.sh3
-rw-r--r--graphics/pcx-pixbuf-loader/pcx-pixbuf-loader.SlackBuild79
-rw-r--r--graphics/pcx-pixbuf-loader/pcx-pixbuf-loader.info10
-rw-r--r--graphics/pcx-pixbuf-loader/slack-desc19
5 files changed, 115 insertions, 0 deletions
diff --git a/graphics/pcx-pixbuf-loader/README b/graphics/pcx-pixbuf-loader/README
new file mode 100644
index 0000000000..0bc979b4b3
--- /dev/null
+++ b/graphics/pcx-pixbuf-loader/README
@@ -0,0 +1,4 @@
+pcx-pixbuf-loader (PCX loader for gdk-pixbuf2)
+
+This allows gdk-pixbuf2 (and software using it) to load .pcx images.
+In particular it allows qiv and geeqie to display PCX images.
diff --git a/graphics/pcx-pixbuf-loader/doinst.sh b/graphics/pcx-pixbuf-loader/doinst.sh
new file mode 100644
index 0000000000..364414cfa1
--- /dev/null
+++ b/graphics/pcx-pixbuf-loader/doinst.sh
@@ -0,0 +1,3 @@
+if [ -x /usr/bin/update-gdk-pixbuf-loaders ]; then
+ /usr/bin/update-gdk-pixbuf-loaders >/dev/null 2>&1
+fi
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}
diff --git a/graphics/pcx-pixbuf-loader/pcx-pixbuf-loader.info b/graphics/pcx-pixbuf-loader/pcx-pixbuf-loader.info
new file mode 100644
index 0000000000..2b8309950b
--- /dev/null
+++ b/graphics/pcx-pixbuf-loader/pcx-pixbuf-loader.info
@@ -0,0 +1,10 @@
+PRGNAM="pcx-pixbuf-loader"
+VERSION="20140824.6211fd8"
+HOMEPAGE="http://urchlay.naptime.net/~urchlay/src/pcx-pixbuf-loader.txt"
+DOWNLOAD="http://urchlay.naptime.net/~urchlay/src/pcx-pixbuf-loader-20140824.6211fd8.tar.xz"
+MD5SUM="3754d32e366a6f962765443810040267"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="meson"
+MAINTAINER="B. Watson"
+EMAIL="yalhcru@gmail.com"
diff --git a/graphics/pcx-pixbuf-loader/slack-desc b/graphics/pcx-pixbuf-loader/slack-desc
new file mode 100644
index 0000000000..9aa695eaae
--- /dev/null
+++ b/graphics/pcx-pixbuf-loader/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+pcx-pixbuf-loader: pcx-pixbuf-loader (PCX loader for gdk-pixbuf2)
+pcx-pixbuf-loader:
+pcx-pixbuf-loader: This allows gdk-pixbuf2 (and software using it) to load .pcx images.
+pcx-pixbuf-loader: In particular it allows qiv and geeqie to display PCX images.
+pcx-pixbuf-loader:
+pcx-pixbuf-loader:
+pcx-pixbuf-loader:
+pcx-pixbuf-loader:
+pcx-pixbuf-loader:
+pcx-pixbuf-loader:
+pcx-pixbuf-loader: