diff options
Diffstat (limited to 'system/buildah/buildah.SlackBuild')
-rw-r--r-- | system/buildah/buildah.SlackBuild | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/system/buildah/buildah.SlackBuild b/system/buildah/buildah.SlackBuild index eb674e63c6..2dccf061e3 100644 --- a/system/buildah/buildah.SlackBuild +++ b/system/buildah/buildah.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for buildah @@ -22,11 +22,14 @@ # 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=buildah VERSION=${VERSION:-1.5} GIT_COMMIT="e94b4f9" BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} # The domain part of the go package name, usually the hosting platform DOMAIN=github.com @@ -41,7 +44,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} @@ -80,6 +90,7 @@ export GOPATH="$TMP/$PRGNAM-$VERSION" sed -i 's|GIT_COMMIT :=|GIT_COMMIT ?=|' Makefile +export GO111MODULE="off" make binary docs GIT_COMMIT="$GIT_COMMIT" TAGS="'seccomp containers_image_ostree_stub'" make install install.completions GIT_COMMIT="$GIT_COMMIT" PREFIX="/usr" DESTDIR="$PKG" MANDIR="/usr/man" @@ -99,4 +110,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 |