diff options
Diffstat (limited to 'development/medit/medit.SlackBuild')
-rw-r--r-- | development/medit/medit.SlackBuild | 35 |
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 |