aboutsummaryrefslogtreecommitdiff
path: root/development/dis/dis.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/dis/dis.SlackBuild')
-rw-r--r--development/dis/dis.SlackBuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/development/dis/dis.SlackBuild b/development/dis/dis.SlackBuild
index 36ab63b5005a..6e47a1e1d261 100644
--- a/development/dis/dis.SlackBuild
+++ b/development/dis/dis.SlackBuild
@@ -10,16 +10,13 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=dis
VERSION=${VERSION:-0.6}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
# no compiled code here
ARCH=noarch
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -44,6 +41,8 @@ cd $PRGNAM-$RELEASE
chown -R root:root .
chmod 644 *
+sed -i 's,Dissasseble,Disassemble,g' $PRGNAM README*
+
patch -p1 < $CWD/usr_share.diff # look for .dop files also in /usr/share/dis
# manual install
@@ -52,6 +51,11 @@ install -m0755 $PRGNAM $PKG/usr/bin
install -m0644 *.dop $PKG/usr/share/$PRGNAM
install -m0644 *.md $PKG/usr/doc/$PRGNAM-$VERSION
+# uh, and now manual (page) install. The man page was made from README.md
+# by the SlackBuild author.
+mkdir -p $PKG/usr/man/man1
+gzip -9c < $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
+
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install