summaryrefslogtreecommitdiffstats
path: root/academic/evopedia_qt/evopedia_qt.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/evopedia_qt/evopedia_qt.SlackBuild')
-rw-r--r--academic/evopedia_qt/evopedia_qt.SlackBuild19
1 files changed, 15 insertions, 4 deletions
diff --git a/academic/evopedia_qt/evopedia_qt.SlackBuild b/academic/evopedia_qt/evopedia_qt.SlackBuild
index 783878ba4a..b146f57090 100644
--- a/academic/evopedia_qt/evopedia_qt.SlackBuild
+++ b/academic/evopedia_qt/evopedia_qt.SlackBuild
@@ -1,23 +1,33 @@
-#!/bin/sh
+#!/bin/bash
#
# Slackware build script for evopedia
#
# Written by Dan-Simon Myrland <dansimon@radiotube.org>
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=evopedia_qt
VERSION=${VERSION:-0.4.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
-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}
@@ -37,6 +47,7 @@ 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 {} \;
+. /etc/profile.d/qt4.sh
# uncomment NO_GUI option for a gui less installation
qmake PREFIX=$PKG/usr #DEFINES+=NO_GUI
make
@@ -52,4 +63,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
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