summaryrefslogtreecommitdiffstats
path: root/development/atasm/atasm.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/atasm/atasm.SlackBuild')
-rw-r--r--development/atasm/atasm.SlackBuild21
1 files changed, 15 insertions, 6 deletions
diff --git a/development/atasm/atasm.SlackBuild b/development/atasm/atasm.SlackBuild
index ec545079b9..c454694204 100644
--- a/development/atasm/atasm.SlackBuild
+++ b/development/atasm/atasm.SlackBuild
@@ -7,7 +7,7 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
PRGNAM=atasm
-VERSION=${VERSION:-1.06}
+VERSION=${VERSION:-1.07d}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -40,8 +40,9 @@ fi
set -e
-SRCDIR="${PRGNAM}${VERSION/./}"
-ZIPFILE="$SRCDIR.zip"
+SRCNAM="${PRGNAM}${VERSION/./}"
+ZIPFILE="$SRCNAM.zip"
+SRCDIR="$( echo "$SRCNAM" | sed 's,[a-z]$,,' )"
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -56,6 +57,14 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+DOCDIR=/usr/doc/$PRGNAM-$VERSION
+
+# fix reference to full documentation.
+sed -i \
+ -e "s,$PRGNAM\.txt,$PRGNAM.pdf," \
+ -e "s,%%DOCDIR%%,$DOCDIR," \
+ src/$PRGNAM.1.in
+
sed -i "s,-O3.*,$SLKCFLAGS," src/Makefile
mkdir -p $PKG/usr/bin $PKG/usr/man/man1 $PKG/usr/doc/$PRGNAM-$VERSION
@@ -66,13 +75,13 @@ touch $PRGNAM.txt
make -C src all install \
DESTDIR=$PKG/usr/bin \
MANDIR=$PKG/usr/man/man1 \
- DOCDIR=$PKG/usr/doc/$PRGNAM-$VERSION
+ DOCDIR=$PKG/$DOCDIR
strip $PKG/usr/bin/$PRGNAM
gzip $PKG/usr/man/man1/$PRGNAM.1
-rm -f $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.txt
-cp -a LICENSE *.TXT docs/* examples $PKG/usr/doc/$PRGNAM-$VERSION
+rm -f $PKG/$DOCDIR/$PRGNAM.txt
+cp -a LICENSE *.TXT docs/* examples $PKG/$DOCDIR
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install