summaryrefslogtreecommitdiffstats
path: root/development/argouml/argouml.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/argouml/argouml.SlackBuild')
-rw-r--r--development/argouml/argouml.SlackBuild20
1 files changed, 15 insertions, 5 deletions
diff --git a/development/argouml/argouml.SlackBuild b/development/argouml/argouml.SlackBuild
index 4980c87a17..9b12df3cad 100644
--- a/development/argouml/argouml.SlackBuild
+++ b/development/argouml/argouml.SlackBuild
@@ -1,17 +1,27 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for argouml
# Written by Dario Nicodemi dario.sbo@gmail.com
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=argouml
-VERSION=${VERSION:-0.34}
+VERSION=${VERSION:-0.35.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
ARCH=noarch
-CWD=$(pwd)
+# 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
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -49,11 +59,11 @@ cp icon/ArgoIcon128x128.png $PKG/usr/share/pixmaps/$PRGNAM.png
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-cp README.txt $PKG/usr/doc/$PRGNAM-$VERSION
+install -D -m 0644 README.txt $PKG/usr/doc/$PRGNAM-$VERSION/README.txt
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE