From b61c3a3f7ec1ead0d56662fc5aec77025c3491fb Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Fri, 15 May 2015 02:11:45 +0300 Subject: desktop/sun: Updated for version 1.0.9. Signed-off-by: Dimitris Zlatanidis --- desktop/sun/doinst.sh | 12 ++++++++++++ desktop/sun/sun.SlackBuild | 4 ++-- desktop/sun/sun.info | 6 +++--- 3 files changed, 17 insertions(+), 5 deletions(-) (limited to 'desktop/sun') 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="" -- cgit v1.2.3-65-gdbad