summaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
Diffstat (limited to 'development')
-rw-r--r--development/medit/doinst.sh13
-rw-r--r--development/medit/medit.SlackBuild35
-rw-r--r--development/medit/medit.info8
3 files changed, 27 insertions, 29 deletions
diff --git a/development/medit/doinst.sh b/development/medit/doinst.sh
index 209593d4a3..9d2c5dc820 100644
--- a/development/medit/doinst.sh
+++ b/development/medit/doinst.sh
@@ -1,12 +1,7 @@
-if [ -x usr/bin/update-desktop-database ]; then
- usr/bin/update-desktop-database > /dev/null 2>&1
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications &> /dev/null
fi
-if [ -x usr/bin/update-mime-database ]; then
- usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
+if [ -x /usr/bin/update-mime-database ]; then
+ /usr/bin/update-mime-database usr/share/mime &> /dev/null
fi
-
-if [ -x usr/bin/gtk-update-icon-cache ]; then
- gtk-update-icon-cache -f -t usr/share/icons/hicolor > /dev/null 2>&1
-fi
-
diff --git a/development/medit/medit.SlackBuild b/development/medit/medit.SlackBuild
index d7f4d66527..de8ce5be9d 100644
--- a/development/medit/medit.SlackBuild
+++ b/development/medit/medit.SlackBuild
@@ -2,13 +2,15 @@
# Slackware build script for medit
# Written by Erik Hanson erik@slackbuilds.org
-# Modified by the SlackBuilds.org project
+
+set -eu
PRGNAM=medit
-VERSION=0.8.5
+VERSION=0.9.4
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -22,10 +24,10 @@ fi
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP || exit 1
+cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1
-cd $PRGNAM-$VERSION || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@@ -33,21 +35,22 @@ CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
- --localstatedir=/var \
- --with-fam \
- || exit 1
+ --localstatedir=/var/lib \
+ --mandir=/usr/man \
+ --disable-static \
+ --disable-generated-files \
+ --with-fam
-make || exit 1
-make install-strip DESTDIR=$PKG || exit 1
+make
+make install-strip DESTDIR=$PKG
-rm -rf $PKG/usr/include $PKG/usr/lib/python2.?
+rm -rf $PKG/usr/lib/python2.?
+gzip -9 $PKG/usr/man/man?/*.?
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING COPYING.lib INSTALL NEWS README THANKS TODO \
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION $PKG/install
+cp -a AUTHORS COPYING COPYING.GPL INSTALL LICENSE NEWS README THANKS \
$PKG/usr/doc/$PRGNAM-$VERSION
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
diff --git a/development/medit/medit.info b/development/medit/medit.info
index 698a439005..fc2bc43824 100644
--- a/development/medit/medit.info
+++ b/development/medit/medit.info
@@ -1,8 +1,8 @@
PRGNAM="medit"
-VERSION="0.8.5"
+VERSION="0.9.4"
HOMEPAGE="http://mooedit.sourceforge.net/"
-DOWNLOAD="http://dl.sourceforge.net/sourceforge/mooedit/medit-0.8.5.tar.bz2"
-MD5SUM="b4f5d4f1b7b1d872ccf664f0559be101"
+DOWNLOAD="http://downloads.sourceforge.net/mooedit/medit-0.9.4.tar.bz2"
+MD5SUM="502086d22d608232d48ef70d56ef5f84"
MAINTAINER="Erik Hanson"
EMAIL="erik@slackbuilds.org"
-APPROVED="rworkman"
+APPROVED="David Somero" \ No newline at end of file