mirror of
https://github.com/Ponce/slackbuilds
synced 2024-09-29 17:37:55 +02:00
graphics/GPS: Script cleanup and Source Update.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
f440180a83
commit
73397bc6fe
4 changed files with 26 additions and 15 deletions
|
@ -4,6 +4,24 @@
|
|||
|
||||
# Written by klaatu
|
||||
# klaatu at the domain of member.fsf.org
|
||||
# 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.
|
||||
|
||||
PRGNAM=GPS
|
||||
VERSION=${VERSION:-2_0}
|
||||
|
@ -22,26 +40,18 @@ set -e
|
|||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM\ $VERSION\ final.zip
|
||||
unzip $CWD/$PRGNAM\ $VERSION\ final.zip -d $TMP/$PRGNAM-$VERSION
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
-exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
cp $CWD/${PRGNAM}_${VERSION}.tar.gz $TMP
|
||||
chown root:root ${PRGNAM}_${VERSION}.tar.gz
|
||||
|
||||
mkdir -p $PKG/usr/share/gimp/2.0/
|
||||
cp -r brushes dynamics gradients palettes \
|
||||
patterns splashes tool-presets \
|
||||
$PKG/usr/share/gimp/2.0/
|
||||
tar -xf $TMP/${PRGNAM}_${VERSION}.tar.gz -C $PKG/usr/share/gimp/2.0/
|
||||
|
||||
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
|
||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="GPS"
|
||||
VERSION="2_0"
|
||||
HOMEPAGE="https://code.google.com/p/gps-gimp-paint-studio"
|
||||
DOWNLOAD="http://gps-gimp-paint-studio.googlecode.com/files/GPS%202_0%20final.zip"
|
||||
MD5SUM="6ce9b9ec4fea8c2f4f78837f53cf9096"
|
||||
DOWNLOAD="http://gps-gimp-paint-studio.googlecode.com/files/GPS_2_0.tar.gz"
|
||||
MD5SUM="72fd1edc148a0c8c8c12993ee266d9e6"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
|
|
|
@ -6,4 +6,3 @@ re-touching, and illustrators.
|
|||
|
||||
Note that this will overwrite any config files you might already have
|
||||
in ~/.gimp-2.8 so if you've got customizations, back 'em up.
|
||||
|
||||
|
|
2
graphics/GPS/doinst.sh
Normal file
2
graphics/GPS/doinst.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
chmod -R 755 /usr/share/gimp/2.0/{brushes,dynamics,gradients,palettes,patterns,splashes,tool-presets,License*,Read*}
|
||||
chown -R root:root /usr/share/gimp/2.0/{brushes,dynamics,gradients,palettes,patterns,splashes,tool-presets,License*,Read*}
|
Loading…
Reference in a new issue