summaryrefslogtreecommitdiff
path: root/development/medit/medit.SlackBuild
diff options
context:
space:
mode:
authorErik Hanson <erik@slackbuilds.org>2010-05-11 22:22:38 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:22:38 +0200
commita8b9186859eed5ac79236136590291385805525e (patch)
tree1759e3fa72ed61d3de1409ed9a0c63ea0aa84616 /development/medit/medit.SlackBuild
parentd2ef54b71d18fc5b70318406e06231641e56d85e (diff)
downloadslackbuilds-a8b9186859eed5ac79236136590291385805525e.tar.gz
development/medit: Updated for version 0.9.4
Diffstat (limited to 'development/medit/medit.SlackBuild')
-rw-r--r--development/medit/medit.SlackBuild35
1 files changed, 19 insertions, 16 deletions
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