From 4de4267021edd5d199244fe9725fb34097ed0037 Mon Sep 17 00:00:00 2001 From: Niki Kovacs Date: Sat, 7 Feb 2015 05:16:35 +0700 Subject: desktop/luna-wallpapers: Added (Elementary OS Luna wallpapers). Signed-off-by: Willy Sudiarto Raharjo --- desktop/luna-wallpapers/luna-wallpapers.SlackBuild | 75 ++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 desktop/luna-wallpapers/luna-wallpapers.SlackBuild (limited to 'desktop/luna-wallpapers/luna-wallpapers.SlackBuild') diff --git a/desktop/luna-wallpapers/luna-wallpapers.SlackBuild b/desktop/luna-wallpapers/luna-wallpapers.SlackBuild new file mode 100644 index 0000000000..401d6585e1 --- /dev/null +++ b/desktop/luna-wallpapers/luna-wallpapers.SlackBuild @@ -0,0 +1,75 @@ +#!/bin/sh + +# Slackware build script for luna-wallpapers + +# Written by Niki Kovacs +# +# 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=luna-wallpapers +VERSION=${VERSION:-0.2} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +ARCH=noarch + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP + +mkdir -p $PKG/usr/share/xfce4/backdrops +mkdir -p $PKG/usr/share/backgrounds/mate +mkdir -p $PKG/usr/share/wallpapers + +# Xfce default +tar xvf $CWD/$PRGNAM.tar.gz -C $PKG/usr/share/xfce4/backdrops/ + +chown -R root:root $PKG +find -L $PKG \ + \( -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 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +# Make sure wallpaper preview also works in KDE and MATE +cd $PKG/usr/share/wallpapers +ln -s ../xfce4/backdrops/*.jpg . +cd - + +cd $PKG/usr/share/backgrounds/mate +ln -s ../../xfce4/backdrops/*.jpg . +cd - + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +mv $PKG/usr/share/xfce4/backdrops/LICENSE $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 +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} -- cgit v1.2.3-80-g2a13