aboutsummaryrefslogtreecommitdiff
path: root/development/nedit/nedit.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/nedit/nedit.SlackBuild')
-rw-r--r--development/nedit/nedit.SlackBuild16
1 files changed, 8 insertions, 8 deletions
diff --git a/development/nedit/nedit.SlackBuild b/development/nedit/nedit.SlackBuild
index 6bf9c6e614a9a..8e0133eb4c6a2 100644
--- a/development/nedit/nedit.SlackBuild
+++ b/development/nedit/nedit.SlackBuild
@@ -23,7 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=nedit
-VERSION=${VERSION:-5.5}
+VERSION=${VERSION:-5.6a}
+NUMVER=$(echo $VERSION | tr -d '[:alpha:]')
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -59,20 +60,20 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar jxvf $CWD/$PRGNAM-$VERSION-src.tar.bz2
-cd $PRGNAM-$VERSION
+rm -rf $PRGNAM-$NUMVER
+tar xvf $CWD/$PRGNAM-$VERSION-src.tar.?z*
+cd $PRGNAM-$NUMVER
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Apply patch to make compilation possible
patch -p1 < $CWD/nedit.patch
-make linux
+make CFLAGS="${SLKCFLAGS} -DBUILD_UNTESTED_NEDIT" linux
mkdir -p $PKG/usr/bin $PKG/usr/man/man1
install -m 755 source/nedit $PKG/usr/bin/nedit
@@ -85,8 +86,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a COPYRIGHT ChangeLog README $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a doc/html $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYRIGHT ChangeLog README doc/faq.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install