diff options
author | Eugene Wissner <belka.ew@gmail.com> | 2010-05-13 00:22:38 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:22:38 +0200 |
commit | 7ec288060ec39c48231557f51998c8e35d8d445a (patch) | |
tree | 6c5ce3de165874a6b2888d1dbade88800cd066d2 /desktop/gnome-colors/gnome-colors.SlackBuild | |
parent | 8f61a76668f5162882ba3fffde4ddd68cda7a46a (diff) | |
download | slackbuilds-7ec288060ec39c48231557f51998c8e35d8d445a.tar.gz |
desktop/gnome-colors: Updated for version 5.5
Diffstat (limited to 'desktop/gnome-colors/gnome-colors.SlackBuild')
-rw-r--r-- | desktop/gnome-colors/gnome-colors.SlackBuild | 54 |
1 files changed, 40 insertions, 14 deletions
diff --git a/desktop/gnome-colors/gnome-colors.SlackBuild b/desktop/gnome-colors/gnome-colors.SlackBuild index ac9218ff04..01abcc9e25 100644 --- a/desktop/gnome-colors/gnome-colors.SlackBuild +++ b/desktop/gnome-colors/gnome-colors.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for GNOME-Colors -# Copyright (c) 2008 Eugene Wissner <belka.ew@gmail.com> +# Copyright (c) 2009 Eugene Wissner <belka.ew@gmail.com> # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -23,12 +23,13 @@ # 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. +# +# Modified by the SlackBuilds.org project PRGNAM=gnome-colors -VERSION=${VERSION:-3.8.8} -# Hardcode the ARCH as this truly is architecture-independent +VERSION=${VERSION:-5.5} ARCH=noarch -BUILD=${BUILD:-1} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} CWD=$(pwd) @@ -36,19 +37,39 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +# The following colors are available: +# brave: blue +# dust: chocolate +# human: orange +# illustrious: pink +# noble: purple +# wine: red +# wise: green +# +# These two themes are from gnome-colors-extras. If you don't want to +# install them, don't worry, leave the second array so and simply +# don't download gnome-colors-extras. +# carbonite: dark-grow +# tribute: light-grow + +# If you don't want all of these installed, edit the following arrays +# to only include those you would like to install. +COLORS="brave dust human illustrious noble wine wise" +COLORS_EXTRAS="carbonite tribute" + set -e -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -mkdir -p $TMP/$PRGNAM-$VERSION +rm -rf $PKG $TMP/$PRGNAM-$VERSION +mkdir -p $PKG $OUTPUT $TMP/$PRGNAM-$VERSION + cd $TMP/$PRGNAM-$VERSION tar xvf $CWD/gnome-colors-$VERSION.tar.gz -mkdir -p $PKG/usr/share/icons -tar xvf gnome-brave.tar.gz -C $PKG/usr/share/icons -tar xvf gnome-human.tar.gz -C $PKG/usr/share/icons -tar xvf gnome-wine.tar.gz -C $PKG/usr/share/icons -tar xvf gnome-wise.tar.gz -C $PKG/usr/share/icons -tar xvf gnome-noble.tar.gz -C $PKG/usr/share/icons + +if [ -e "$CWD/gnome-colors-extras-$VERSION.tar.gz" ] ; then + tar xvf $CWD/gnome-colors-extras-$VERSION.tar.gz + COLORS=${COLORS}" "${COLORS_EXTRAS} +fi + chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -56,6 +77,11 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Install icons +for j in ${COLORS}; do + make DESTDIR="$PKG" install-gnome-${j}; +done + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ AUTHORS COPYING ChangeLog README \ @@ -67,4 +93,4 @@ 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.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |