summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2015-05-15 02:11:45 +0300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-05-17 23:45:35 +0700
commitb61c3a3f7ec1ead0d56662fc5aec77025c3491fb (patch)
tree6db416b65c0c068e26ceba0ff57a3eb6fdfb0d62 /desktop
parentfffd87aac5ac15a195ee2328f6a69a86fed08c48 (diff)
downloadslackbuilds-b61c3a3f7ec1ead0d56662fc5aec77025c3491fb.tar.gz
desktop/sun: Updated for version 1.0.9.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/sun/doinst.sh12
-rw-r--r--desktop/sun/sun.SlackBuild4
-rw-r--r--desktop/sun/sun.info6
3 files changed, 17 insertions, 5 deletions
diff --git a/desktop/sun/doinst.sh b/desktop/sun/doinst.sh
index 5fb28930db..5dc84af9c0 100644
--- a/desktop/sun/doinst.sh
+++ b/desktop/sun/doinst.sh
@@ -1,3 +1,15 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ rm $NEW
+ fi
+}
+
+config etc/sun/sun.conf.new
+
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
diff --git a/desktop/sun/sun.SlackBuild b/desktop/sun/sun.SlackBuild
index 10d752086d..38ddf71f9c 100644
--- a/desktop/sun/sun.SlackBuild
+++ b/desktop/sun/sun.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=sun
-VERSION=${VERSION:-1.0.8}
+VERSION=${VERSION:-1.0.9}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -79,7 +79,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
# install configurations files
mkdir -p $PKG/etc/$PRGNAM $PKG/etc/rc.d/
-install -D -m0644 conf/${PRGNAM}.conf $PKG/etc/$PRGNAM/${PRGNAM}.conf
+install -D -m0644 conf/${PRGNAM}.conf $PKG/etc/$PRGNAM/${PRGNAM}.conf.new
install -D -m0644 conf/mirrors $PKG/etc/$PRGNAM/mirrors
# install rc file
install -D -m0644 conf/rc.${PRGNAM} $PKG/etc/rc.d/rc.${PRGNAM}
diff --git a/desktop/sun/sun.info b/desktop/sun/sun.info
index 1635b04c84..24d91005bd 100644
--- a/desktop/sun/sun.info
+++ b/desktop/sun/sun.info
@@ -1,8 +1,8 @@
PRGNAM="sun"
-VERSION="1.0.8"
+VERSION="1.0.9"
HOMEPAGE="https://github.com/dslackw/sun"
-DOWNLOAD="https://github.com/dslackw/sun/archive/v1.0.8.tar.gz"
-MD5SUM="8178245f077f672273721fb779b3fbe8"
+DOWNLOAD="https://github.com/dslackw/sun/archive/v1.0.9.tar.gz"
+MD5SUM="02158cec051f9cb11afe55b32f76d2d0"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""