From 547034bc254dd8c14f3aba9b7fb3894f9ac44318 Mon Sep 17 00:00:00 2001 From: B. Watson Date: Sun, 29 Dec 2019 11:27:03 +0700 Subject: graphics/xcf-pixbuf-loader: Added (gdk-pixbuf2 loader for Gimp). Signed-off-by: Willy Sudiarto Raharjo --- graphics/xcf-pixbuf-loader/README | 7 ++ graphics/xcf-pixbuf-loader/doinst.sh | 3 + graphics/xcf-pixbuf-loader/git2tarxz.sh | 42 +++++++++++ graphics/xcf-pixbuf-loader/slack-desc | 19 +++++ .../xcf-pixbuf-loader/xcf-pixbuf-loader.SlackBuild | 84 ++++++++++++++++++++++ graphics/xcf-pixbuf-loader/xcf-pixbuf-loader.info | 10 +++ 6 files changed, 165 insertions(+) create mode 100644 graphics/xcf-pixbuf-loader/README create mode 100644 graphics/xcf-pixbuf-loader/doinst.sh create mode 100644 graphics/xcf-pixbuf-loader/git2tarxz.sh create mode 100644 graphics/xcf-pixbuf-loader/slack-desc create mode 100644 graphics/xcf-pixbuf-loader/xcf-pixbuf-loader.SlackBuild create mode 100644 graphics/xcf-pixbuf-loader/xcf-pixbuf-loader.info (limited to 'graphics') diff --git a/graphics/xcf-pixbuf-loader/README b/graphics/xcf-pixbuf-loader/README new file mode 100644 index 0000000000..be12107a5a --- /dev/null +++ b/graphics/xcf-pixbuf-loader/README @@ -0,0 +1,7 @@ +xcf-pixbuf-loader (gdk-pixbuf2 loader for Gimp image files) + +XCF is the Gimp's native file format, as created by its Save command. This +loader allows applications using gdk-pixbuf2 to load .xcf files. In +particular, it works with qiv. + +Note: loading large .xcf files is slow. Be patient. diff --git a/graphics/xcf-pixbuf-loader/doinst.sh b/graphics/xcf-pixbuf-loader/doinst.sh new file mode 100644 index 0000000000..364414cfa1 --- /dev/null +++ b/graphics/xcf-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/xcf-pixbuf-loader/git2tarxz.sh b/graphics/xcf-pixbuf-loader/git2tarxz.sh new file mode 100644 index 0000000000..0fdb9f89b5 --- /dev/null +++ b/graphics/xcf-pixbuf-loader/git2tarxz.sh @@ -0,0 +1,42 @@ +#!/bin/sh + +# Create source tarball from git repo, with generated version +# number. We don't include the git history in the tarball. + +# Note that this script doesn't need to be run as root. It does +# need to be able to write to the current directory it's run from. + +PRGNAM=xcf-pixbuf-loader +CLONE_URL=https://github.com/StephaneDelcroix/$PRGNAM.git + +set -e + +GITDIR=$( mktemp -dt $PRGNAM.git.XXXXXX ) +rm -rf $GITDIR +git clone $CLONE_URL $GITDIR + +CWD="$( pwd )" +cd $GITDIR + +VERSION=$( git log --date=format:%Y%m%d --pretty=format:%cd.%h -n1 ) + +rm -rf .git +find . -name .gitignore -print0 | xargs -0 rm -f + +cd "$CWD" +rm -rf $PRGNAM-$VERSION $PRGNAM-$VERSION.tar.xz +mv $GITDIR $PRGNAM-$VERSION +tar cvfJ $PRGNAM-$VERSION.tar.xz $PRGNAM-$VERSION + +cat < $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} diff --git a/graphics/xcf-pixbuf-loader/xcf-pixbuf-loader.info b/graphics/xcf-pixbuf-loader/xcf-pixbuf-loader.info new file mode 100644 index 0000000000..97dd27326f --- /dev/null +++ b/graphics/xcf-pixbuf-loader/xcf-pixbuf-loader.info @@ -0,0 +1,10 @@ +PRGNAM="xcf-pixbuf-loader" +VERSION="20180108.eb42b85" +HOMEPAGE="https://github.com/StephaneDelcroix/xcf-pixbuf-loader" +DOWNLOAD="http://urchlay.naptime.net/~urchlay/src/xcf-pixbuf-loader-20180108.eb42b85.tar.xz" +MD5SUM="b73f994ba57edcfd25c964bfc1f3680f" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" -- cgit v1.2.3