diff --git a/gimp-instagram-effects/gimp-instagram-effects.SlackBuild b/gimp-instagram-effects/gimp-instagram-effects.SlackBuild deleted file mode 100644 index 671e93b879..0000000000 --- a/gimp-instagram-effects/gimp-instagram-effects.SlackBuild +++ /dev/null @@ -1,81 +0,0 @@ -#!/bin/sh -# -# Slackware build script for gimp_instagram_effects -# -# Copyright 2015 Corrado Franco (http://conraid.net) -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# -# Latest version of this SlackBuild at http://slackers.it/repository - -# Exit on most errors -set -eu - -# Set variables: -CWD=$(pwd) - -PRGNAME=${PRGNAME:-gimp_instagram_effects} -PKGNAME=${PRGNAME//_/-} -VERSION=${VERSION:-0.1} -PKGVERSION=${VERSION//-/_} -BUILD=${BUILD:-1} -TAG=${TAG:-cf} -TMP=${TMP:-/tmp/pkg} -PKG=${TMP}/package-${PKGNAME} -DOCDIR="${PKG}/usr/doc/${PKGNAME}-${PKGVERSION}" - -# Automatically determine the architecture we're building on: -if [ -z ${ARCH:=""} ]; then - case "$( uname -m )" in - i?86) ARCH=i686 ;; - arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) ARCH=$( uname -m ) ;; - esac -fi - -# Set LIBDIR -case "$ARCH" in - x86_64) - LIBDIRSUFFIX="64" - ;; - *) - LIBDIRSUFFIX="" - ;; -esac - -# Extract source and install -rm -rf ${PKG} -mkdir -p ${TMP} ${PKG}/usr/lib${LIBDIRSUFFIX}/gimp/2.0/plug-ins/ -cd ${PKG}/usr/lib${LIBDIRSUFFIX}/gimp/2.0/plug-ins/ -unzip ${CWD}/${PRGNAME}.zip - -# Make sure ownerships and permissions are sane: -chown -R root:root . -chmod -R ugo-x,u+rwX,go+rX,go-w,a+x . - -# Add a slackbuild script: -install -Dm644 ${CWD}/${PKGNAME}.SlackBuild ${DOCDIR}/${PKGNAME}.SlackBuild - -# Add slack-desc -install -Dm644 ${CWD}/slack-desc ${PKG}/install/slack-desc - -# Create package: -cd ${PKG} -/sbin/makepkg -l y -c n ${CWD}/${PKGNAME}-${PKGVERSION}-${ARCH}-${BUILD}${TAG}.txz diff --git a/gimp-instagram-effects/README b/gimp_instagram_effects/README similarity index 89% rename from gimp-instagram-effects/README rename to gimp_instagram_effects/README index 10c9cedd08..16ad4507b3 100644 --- a/gimp-instagram-effects/README +++ b/gimp_instagram_effects/README @@ -1,5 +1,5 @@ -Slackware Current Repository by Conraid +Slackware Current Repository by Conraid ====================================================================== diff --git a/gimp_instagram_effects/gimp_instagram_effects.SlackBuild b/gimp_instagram_effects/gimp_instagram_effects.SlackBuild new file mode 100644 index 0000000000..7d2a700804 --- /dev/null +++ b/gimp_instagram_effects/gimp_instagram_effects.SlackBuild @@ -0,0 +1,67 @@ +#!/bin/sh +# +# Slackware build script for gimp_instagram_effects +# +# Copyright 2015-2016 Corrado Franco (http://conraid.net) +# All rights reserved. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version, with the following exception: +# the text of the GPL license may be omitted. + +# This program is distributed in the hope that it will be useful, but +# without any warranty; without even the implied warranty of +# merchantability or fitness for a particular purpose. Compiling, +# interpreting, executing or merely reading the text of the program +# may result in lapses of consciousness and/or very being, up to and +# including the end of all existence and the Universe as we know it. +# See the GNU General Public License for more details. + +# You may have received a copy of the GNU General Public License along +# with this program (most likely, a file named COPYING). If not, see +# . +# +# Latest version of this SlackBuild at https://github.com/conraid/SlackBuilds + +set -eu + +CWD=$(pwd) + +PKGNAM=gimp_instagram_effects +VERSION=0.1 +BUILD=${BUILD:-1} +TAG=${TAG:-cf} +TMP=${TMP:-/tmp/pkg} +PKG=$TMP/package-$PKGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ -z ${ARCH:=""} ]; then + case "$( uname -m )" in + i?86) ARCH=i686 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +[ $ARCH == 'x86_64' ] && LIBDIRSUFFIX="64" || LIBDIRSUFFIX="" + +rm -rf $PKG +mkdir -p $TMP $PKG/usr/lib${LIBDIRSUFFIX}/gimp/2.0/plug-ins/ +cd $PKG/usr/lib${LIBDIRSUFFIX}/gimp/2.0/plug-ins/ +unzip $CWD/${PKGNAM}.zip + +chown -R root:root . +chmod -R ugo-x,u+rwX,go+rX,go-w,a+x . + +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +cat $CWD/$PKGNAM.SlackBuild > $PKG/usr/doc/$PKGNAM-$VERSION/$PKGNAM.SlackBuild + +install -Dm644 $CWD/${PKGNAM}.SlackBuild $PKG/usr/doc/$PKGNAM-$VERSION/${PKGNAM}.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PKGNAM-$VERSION-$ARCH-$BUILD${TAG}.txz diff --git a/gimp-instagram-effects/gimp-instagram-effects.info b/gimp_instagram_effects/gimp_instagram_effects.info similarity index 91% rename from gimp-instagram-effects/gimp-instagram-effects.info rename to gimp_instagram_effects/gimp_instagram_effects.info index 5c0dc2e81d..dc1256f7e5 100644 --- a/gimp-instagram-effects/gimp-instagram-effects.info +++ b/gimp_instagram_effects/gimp_instagram_effects.info @@ -1,4 +1,4 @@ -PRGNAM="gimp-instagram-effects" +PRGNAM="gimp_instagram_effects" VERSION="2_0" HOMEPAGE="http://krypt77.altervista.org" DOWNLOAD="http://krypt77.altervista.org/download/gimp/gimp_instagram_effects.zip" diff --git a/gimp-instagram-effects/slack-desc b/gimp_instagram_effects/slack-desc similarity index 58% rename from gimp-instagram-effects/slack-desc rename to gimp_instagram_effects/slack-desc index 66699169b6..9578e14a1f 100644 --- a/gimp-instagram-effects/slack-desc +++ b/gimp_instagram_effects/slack-desc @@ -6,14 +6,14 @@ # customary to leave one space after the ':' except on otherwise blank lines. |-----handy-ruler------------------------------------------------------| -gimp-instagram-effects: gimp_instagram_effects (Gimp Instagram effects) -gimp-instagram-effects: -gimp-instagram-effects: GPS is a Ccollection of scripts that recreate -gimp-instagram-effects: (as faithfully as possible) some filters of Instagram -gimp-instagram-effects: -gimp-instagram-effects: -gimp-instagram-effects: -gimp-instagram-effects: -gimp-instagram-effects: -gimp-instagram-effects: -gimp-instagram-effects: +gimp_instagram_effects: gimp_instagram_effects (Gimp Instagram effects) +gimp_instagram_effects: +gimp_instagram_effects: GPS is a Ccollection of scripts that recreate +gimp_instagram_effects: (as faithfully as possible) some filters of Instagram +gimp_instagram_effects: +gimp_instagram_effects: +gimp_instagram_effects: +gimp_instagram_effects: +gimp_instagram_effects: +gimp_instagram_effects: +gimp_instagram_effects: