2021-07-03 19:48:15 +02:00
|
|
|
#!/bin/bash
|
2011-07-10 13:37:02 +02:00
|
|
|
|
|
|
|
# Slackware build script for GIMP Paint Studio
|
2022-03-06 09:20:10 +01:00
|
|
|
# Klaatu <klaatu@member.fsf.org>
|
2011-07-10 13:37:02 +02:00
|
|
|
|
2022-03-06 09:20:10 +01:00
|
|
|
# GNU All-Permissive License
|
|
|
|
# Copying and distribution of this file, with or without modification,
|
|
|
|
# are permitted in any medium without royalty provided the copyright
|
|
|
|
# notice and this notice are preserved. This file is offered as-is,
|
|
|
|
# without any warranty.
|
2011-07-10 13:37:02 +02:00
|
|
|
|
2021-07-04 11:41:06 +02:00
|
|
|
cd $(dirname $0) ; CWD=$(pwd)
|
|
|
|
|
2011-07-10 13:37:02 +02:00
|
|
|
PRGNAM=GPS
|
2012-09-10 13:06:14 +02:00
|
|
|
VERSION=${VERSION:-2_0}
|
2011-07-10 13:37:02 +02:00
|
|
|
BUILD=${BUILD:-1}
|
|
|
|
TAG=${TAG:-_SBo}
|
2021-07-04 12:23:38 +02:00
|
|
|
PKGTYPE=${PKGTYPE:-tgz}
|
2011-07-10 13:37:02 +02:00
|
|
|
|
|
|
|
ARCH="noarch"
|
|
|
|
|
2021-07-04 12:23:38 +02:00
|
|
|
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
|
|
|
|
# the name of the created package would be, and then exit. This information
|
|
|
|
# could be useful to other scripts.
|
|
|
|
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
|
|
|
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2011-07-10 13:37:02 +02:00
|
|
|
TMP=${TMP:-/tmp/SBo}
|
|
|
|
PKG=$TMP/package-$PRGNAM
|
|
|
|
OUTPUT=${OUTPUT:-/tmp}
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
rm -rf $PKG
|
|
|
|
mkdir -p $TMP $PKG $OUTPUT
|
2016-01-09 22:28:10 +01:00
|
|
|
cd $PKG
|
2011-07-10 13:37:02 +02:00
|
|
|
|
|
|
|
mkdir -p $PKG/usr/share/gimp/2.0/
|
2016-01-09 22:28:10 +01:00
|
|
|
tar -xf $CWD/${PRGNAM}_${VERSION}.tar.gz -C $PKG/usr/share/gimp/2.0/
|
|
|
|
|
|
|
|
chown -R root:root .
|
|
|
|
find -L . \
|
|
|
|
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
2016-05-14 19:28:55 +02:00
|
|
|
-o -perm 511 -o -perm 700 \) -exec chmod 755 {} \; -o \
|
2016-01-09 22:28:10 +01:00
|
|
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
|
|
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
2011-07-10 13:37:02 +02:00
|
|
|
|
|
|
|
mkdir -p $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
|
|
|
|
|
|
|
|
cd $PKG
|
2021-07-04 12:23:38 +02:00
|
|
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
|