aboutsummaryrefslogtreecommitdiff
path: root/desktop/dunst/dunst.SlackBuild
diff options
context:
space:
mode:
authorСимон Болоканов <sbolokanov@abv.bg>2015-03-15 14:25:58 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-03-16 02:03:04 +0700
commit4eca22e412f1102e5c3473871d8474c027da70d5 (patch)
treec96454b2e9d06255abfd69772fb9d20f58b37f51 /desktop/dunst/dunst.SlackBuild
parente15cad2d786370fb9a23a680c061a31c83d47232 (diff)
desktop/dunst: fix download url, plus some script clean ups
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/dunst/dunst.SlackBuild')
-rw-r--r--desktop/dunst/dunst.SlackBuild11
1 files changed, 6 insertions, 5 deletions
diff --git a/desktop/dunst/dunst.SlackBuild b/desktop/dunst/dunst.SlackBuild
index 0ca362d1fe376..6f2ca6f49fe13 100644
--- a/desktop/dunst/dunst.SlackBuild
+++ b/desktop/dunst/dunst.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright (c) 2014, Simon Bolokanov, Bulgaria
+# Copyright (c) 2014, Симон Болоканов, България
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,10 +24,11 @@
# 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
PRGNAM=dunst
VERSION=${VERSION:-1.1.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -63,7 +64,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -72,7 +73,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# Change config dir to Slackware specification
+# Change config dir to appropriate location
sed -i 's,${PREFIX}/share/dunst,/etc/xdg/dunst,' Makefile
CFLAGS="$SLKCFLAGS" \
@@ -89,7 +90,7 @@ 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
mkdir -pv $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS CHANGELOG INSTALL LICENSE README* RELEASE_NOTES* VERSION docs/* \
+cp -a AUTHORS CHANGELOG INSTALL LICENSE docs/dunst_explainations.png \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild