diff options
author | B. Watson <yalhcru@gmail.com> | 2019-12-29 11:27:03 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-12-29 11:27:03 +0700 |
commit | 547034bc254dd8c14f3aba9b7fb3894f9ac44318 (patch) | |
tree | fe7696ef0f09dc505340a613221e69f886204243 /graphics/xcf-pixbuf-loader/xcf-pixbuf-loader.SlackBuild | |
parent | c5864ccde0498a33582aa7fe20619b9176bb9cad (diff) | |
download | slackbuilds-547034bc254dd8c14f3aba9b7fb3894f9ac44318.tar.gz |
graphics/xcf-pixbuf-loader: Added (gdk-pixbuf2 loader for Gimp).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/xcf-pixbuf-loader/xcf-pixbuf-loader.SlackBuild')
-rw-r--r-- | graphics/xcf-pixbuf-loader/xcf-pixbuf-loader.SlackBuild | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/graphics/xcf-pixbuf-loader/xcf-pixbuf-loader.SlackBuild b/graphics/xcf-pixbuf-loader/xcf-pixbuf-loader.SlackBuild new file mode 100644 index 0000000000..b2b38eabec --- /dev/null +++ b/graphics/xcf-pixbuf-loader/xcf-pixbuf-loader.SlackBuild @@ -0,0 +1,84 @@ +#!/bin/sh + +# Slackware build script for xcf-pixbuf-loader + +# Written by B. Watson (yalhcru@gmail.com) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +PRGNAM=xcf-pixbuf-loader +VERSION=${VERSION:-20180108.eb42b85} +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 {} \+ + +sh autogen.sh + +MODDIR="$( pkg-config gdk-pixbuf-2.0 --variable gdk_pixbuf_moduledir )" + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --disable-static \ + --enable-shared \ + --prefix=/usr \ + --libdir=$MODDIR \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux + +make +make install-strip DESTDIR=$PKG +rename libio libpixbufloader- $PKG/$MODDIR/* + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +# ChangeLog is a 0-byte placeholder. +cp -a AUTHORS COPYING NEWS README test*.xcf* $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$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} |