summaryrefslogtreecommitdiffstats
path: root/development/gn
diff options
context:
space:
mode:
Diffstat (limited to 'development/gn')
-rw-r--r--development/gn/README5
-rw-r--r--development/gn/gn.SlackBuild16
-rw-r--r--development/gn/gn.info2
3 files changed, 15 insertions, 8 deletions
diff --git a/development/gn/README b/development/gn/README
index d72f2e9c83..2766344ee1 100644
--- a/development/gn/README
+++ b/development/gn/README
@@ -1,6 +1,3 @@
GN is a meta-build system that generates build files for Ninja.
-The dependency on ninja can be avoided by installing samu from SBo
-instead. To build with samu instead of ninja use:
-
- NINJA=samu ./gn.SlackBuild
+To build with samu instead of ninja, do: NINJA=samu ./gn.SlackBuild
diff --git a/development/gn/gn.SlackBuild b/development/gn/gn.SlackBuild
index 9795b6ccad..43122adcaa 100644
--- a/development/gn/gn.SlackBuild
+++ b/development/gn/gn.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for gn
@@ -22,10 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=gn
VERSION=${VERSION:-0.1616}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then
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}
@@ -98,4 +108,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
diff --git a/development/gn/gn.info b/development/gn/gn.info
index b139648d92..da02e56a5a 100644
--- a/development/gn/gn.info
+++ b/development/gn/gn.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://dev.gentoo.org/~floppym/dist/gn-0.1616.tar.xz"
MD5SUM="46910008292788151243c169e7c2e2d3"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="ninja"
+REQUIRES=""
MAINTAINER="Hunter Sezen"
EMAIL="orbea@riseup.net"