diff options
Diffstat (limited to 'development/jeex')
-rw-r--r-- | development/jeex/doinst.sh | 20 | ||||
-rw-r--r-- | development/jeex/jeex.SlackBuild | 9 |
2 files changed, 26 insertions, 3 deletions
diff --git a/development/jeex/doinst.sh b/development/jeex/doinst.sh new file mode 100644 index 0000000000000..d8aa7f214f61b --- /dev/null +++ b/development/jeex/doinst.sh @@ -0,0 +1,20 @@ + config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +config etc/jeex/magic.binary.new +config etc/jeex/jeex.rc.new +config etc/jeex/magic.text.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/development/jeex/jeex.SlackBuild b/development/jeex/jeex.SlackBuild index 757fac00f0489..0cc1e697c1ca6 100644 --- a/development/jeex/jeex.SlackBuild +++ b/development/jeex/jeex.SlackBuild @@ -6,15 +6,13 @@ PRGNAM=jeex VERSION=${VERSION:-12.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -56,6 +54,10 @@ find . \ make make install destdir=$PKG +mv $PKG/etc/jeex/magic.binary $PKG/etc/jeex/magic.binary.new +mv $PKG/etc/jeex/jeex.rc $PKG/etc/jeex/jeex.rc.new +mv $PKG/etc/jeex/magic.text $PKG/etc/jeex/magic.text.new + find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true @@ -66,6 +68,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $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} |