summaryrefslogtreecommitdiff
path: root/desktop/dunst/dunst.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/dunst/dunst.SlackBuild')
-rw-r--r--desktop/dunst/dunst.SlackBuild11
1 files changed, 8 insertions, 3 deletions
diff --git a/desktop/dunst/dunst.SlackBuild b/desktop/dunst/dunst.SlackBuild
index 6f2ca6f49f..41987c2244 100644
--- a/desktop/dunst/dunst.SlackBuild
+++ b/desktop/dunst/dunst.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright (c) 2014, Симон Болоканов, България
+# Copyright (c) 2014-2016 Симонъ С. Болокановъ – Бдинъ, България
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -20,15 +20,16 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Written by Симон Болоканов <sbolokanov@abv.bg>
+# Written by Симонъ С. Болокановъ <sbolokanov@abv.bg>
# changelog:
# v1.0.0 - Simon Bolokanov
# v1.1.0 - revised for SBo - 09.10.2014
# 15.3.2015 - main site is down, fixed download url. Made some script clean ups
+# 3.4.2016 - don't clobber the config
PRGNAM=dunst
VERSION=${VERSION:-1.1.0}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -83,6 +84,9 @@ make DESTDIR=$PKG \
MANPREFIX=/usr/man \
install
+# Don't clobber the default config
+mv $PKG/etc/xdg/dunst/dunstrc $PKG/etc/xdg/dunst/dunstrc.new
+
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -96,6 +100,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -pv $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}