diff options
Diffstat (limited to 'development/samurai')
-rw-r--r-- | development/samurai/README | 16 | ||||
-rw-r--r-- | development/samurai/samurai.SlackBuild | 23 | ||||
-rw-r--r-- | development/samurai/samurai.info | 6 |
3 files changed, 27 insertions, 18 deletions
diff --git a/development/samurai/README b/development/samurai/README index 27a71ab071..50767754e0 100644 --- a/development/samurai/README +++ b/development/samurai/README @@ -1,10 +1,10 @@ -samurai is a ninja-compatible build tool written in C99 with a focus on -simplicity, speed, and portability. +samurai is a ninja-compatible build tool written in C99 with a focus +on simplicity, speed, and portability. -samurai implements the ninja build language through version 1.8.2 except -for MSVC dependency handling (deps = msvc). It uses the same format for -.ninja_log and .ninja_deps as ninja, currently version 5 and 3 -respectively. +It is largely feature-complete and supports most of the same options +as ninja. -It is largely feature-complete and supports most of the same options as -ninja. +Many SlackBuild scripts allow setting the NINJA environment variable +to use samu instead of ninja. + + export NINJA='samu' diff --git a/development/samurai/samurai.SlackBuild b/development/samurai/samurai.SlackBuild index 932125a34b..108a9bab37 100644 --- a/development/samurai/samurai.SlackBuild +++ b/development/samurai/samurai.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for samurai -# Copyright 2018-2019 Hunter Sezen California, USA +# Copyright 2018-2021 Hunter Sezen California, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -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=samurai -VERSION=${VERSION:-1.0} +VERSION=${VERSION:-1.2} 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} @@ -69,9 +79,8 @@ 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 {} \; -make CFLAGS="$SLKCFLAGS" - make install \ + CFLAGS="$SLKCFLAGS" \ PREFIX=/usr \ MANDIR=/usr/man \ DESTDIR=$PKG @@ -90,4 +99,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/samurai/samurai.info b/development/samurai/samurai.info index 2078a6be1f..0ed81df68c 100644 --- a/development/samurai/samurai.info +++ b/development/samurai/samurai.info @@ -1,8 +1,8 @@ PRGNAM="samurai" -VERSION="1.0" +VERSION="1.2" HOMEPAGE="https://github.com/michaelforney/samurai" -DOWNLOAD="https://github.com/michaelforney/samurai/releases/download/1.0/samurai-1.0.tar.gz" -MD5SUM="5480fe0d7d805fb0ff1bef867d0d762f" +DOWNLOAD="https://github.com/michaelforney/samurai/releases/download/1.2/samurai-1.2.tar.gz" +MD5SUM="3ad6771de19a93660fdb36dc67687727" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |