Browse Source

l/gtk-themes: Added gtk-themes-20140610.

slackware-14.2
Damien Goutte-Gattat 8 years ago
parent
commit
ba8127cd7a
  1. 2
      l/gtk-themes/checksums
  2. 90
      l/gtk-themes/gtk-themes.SlackBuild
  3. 12
      l/gtk-themes/slack-desc

2
l/gtk-themes/checksums

@ -0,0 +1,2 @@
1f1f8208d8db2f72986b7a31a065c158b9df115c 147061-Gnome-Cupertino-2.1.5.tar.gz
aa8531404893c2e22c20a761d27093c9d4e0074b Uncomplicated-1.04.tar.gz

90
l/gtk-themes/gtk-themes.SlackBuild

@ -0,0 +1,90 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2014 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# 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.
#
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# GTK+ themes come from <http://gnome-look.org/>.
#
# Depends: l/murrine
# Source package infos
THEMESPKG="https://dl.dropboxusercontent.com/u/80497678/Uncomplicated-1.04.tar.gz
http://gnome-look.org/CONTENT/content-files/147061-Gnome-Cupertino-2.1.5.tar.gz"
# Build infos
NAMEPKG=${NAMEPKG:-gtk-themes}
VERSION=${VERSION:-20140610}
BUILD=${BUILD:-1GGD}
ARCH=noarch
EXT=${EXT:-txz}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
# Sanity checks
if [ $UID -eq 0 ]; then
echo "You should NOT run this script as ROOT!"
exit 1
fi
if [ ! -d $TMP ]; then
echo "$TMP does not exists or is not a directory!"
exit 1
fi
# Download themes
for srcpkg in $THEMESPKG ; do
archive=$(basename $srcpkg)
if [ ! -r $archive ]; then
wget -c $srcpkg
fi
done
sha1sum -c checksums
# Install themes
mkdir -p $PKG/usr/share/themes
cd $PKG/usr/share/themes
for srcpkg in $THEMESPKG ; do
archive=$(basename $srcpkg)
tar xf $CWD/$archive
done
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Package the tree
cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
"
if type -p fakeroot ; then
echo "$PACKAGING" | fakeroot
else
su -c "$PACKAGING"
fi

12
l/gtk-themes/slack-desc

@ -0,0 +1,12 @@
|-----handy-ruler-----------------------------------------------------|
gtk-themes: gtk-themes (collection of GTK+ themes)
gtk-themes:
gtk-themes: This package provides a few GTK+ themes from gnome-look.org.
gtk-themes:
gtk-themes:
gtk-themes:
gtk-themes:
gtk-themes:
gtk-themes:
gtk-themes:
gtk-themes:
Loading…
Cancel
Save