summaryrefslogtreecommitdiff
path: root/desktop/lxlauncher/lxlauncher.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2014-09-05 11:15:59 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-09-05 23:21:10 +0700
commitfe3c3f50da554af145245322e73fc44849720d28 (patch)
tree076c6b552b958dc450a6f1d3e0cf551cfc9b4c0a /desktop/lxlauncher/lxlauncher.SlackBuild
parent4b20e518b6a4dc99b2efd44136bc7bb9118b73ad (diff)
downloadslackbuilds-fe3c3f50da554af145245322e73fc44849720d28.tar.gz
desktop/lxlauncher: Updated for version 0.2.3.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'desktop/lxlauncher/lxlauncher.SlackBuild')
-rw-r--r--desktop/lxlauncher/lxlauncher.SlackBuild24
1 files changed, 19 insertions, 5 deletions
diff --git a/desktop/lxlauncher/lxlauncher.SlackBuild b/desktop/lxlauncher/lxlauncher.SlackBuild
index 22bbfddf8a..c1ebe6e2d4 100644
--- a/desktop/lxlauncher/lxlauncher.SlackBuild
+++ b/desktop/lxlauncher/lxlauncher.SlackBuild
@@ -1,6 +1,7 @@
#!/bin/sh
# $Id: lxlauncher.SlackBuild,v 1.3 2009/09/11 20:45:23 root Exp root $
# Copyright (c) 2008-2009 Eric Hameleers, Eindhoven, NL
+# Copyright (c) 2010-2014 Matteo Bernardini, Pisa, IT
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for
@@ -39,6 +40,8 @@
# * updated to git snapshot.
# 0.2.2-1: 26/dec/2011 by Matteo Bernardini <ponce@slackbuilds.org>
# * update.
+# 0.2.3-1: 03/sep/2014 by Matteo Bernardini <ponce@slackbuilds.org>
+# * update.
#
# Run 'sh lxlauncher.SlackBuild' to build a Slackware package.
# The package is created in /tmp .
@@ -47,7 +50,7 @@
# -----------------------------------------------------------------------------
PRGNAM=lxlauncher
-VERSION=${VERSION:-0.2.2}
+VERSION=${VERSION:-0.2.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -59,8 +62,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-DOCS="AUTHORS COPYING ChangeLog NEWS README"
-
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -80,6 +81,8 @@ else
LIBDIRSUFFIX=""
fi
+DOCS="AUTHORS COPYING NEWS README"
+
set -e
rm -rf $PKG
@@ -95,8 +98,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# fix no displaying of icons
-patch -p1 < $CWD/fix-empty-lxlauncher.patch
+# apply patches from upstream
+for i in $CWD/patches/* ; do patch -p1 < $i ; done
sh autogen.sh || true
@@ -109,10 +112,20 @@ CFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc \
--program-prefix= \
--program-suffix= \
+ --mandir=/usr/man \
--build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
+# Don't clobber configuration files
+( cd $PKG/etc/xdg
+ for i in lxlauncher/gtkrc lxlauncher/settings.conf menus/lxlauncher-applications.menu; do
+ mv $i $i.new
+ done )
+
# Add documentation:
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true
@@ -122,6 +135,7 @@ find $PKG/usr/doc -type f -exec chmod 644 {} \;
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}