-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
#!/bin/sh -e | ||
#!/bin/bash | ||
|
||
# Slackware build script for Joachim Wiberg (troglobit)'s fork of OpenBSD Mg | ||
# [email protected] revision date 2023/04/10 | ||
# license (of this script and its accessories, not that of the application it will package): see LICENSE | ||
|
||
cd $(dirname $0) ; CWD=$(pwd) | ||
|
||
PRGNAM=mg-troglobit | ||
VERSION=${VERSION:-3.6} | ||
BUILD=${BUILD:-1} | ||
TAG=${TAG:-_SBo} | ||
PKGTYPE=${PKGTYPE:-tgz} | ||
|
||
if [ -z "$ARCH" ]; then | ||
case "$( uname -m )" in | ||
|
@@ -17,7 +20,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} | ||
|
@@ -84,4 +94,4 @@ gzip -9 $PKG/usr/doc/$PRGNAM-$VERSION/tutorial | |
rm $PKG/usr/doc/$PRGNAM-$VERSION/*.md | ||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
PRGNAM="mg-troglobit" | ||
VERSION="3.5" | ||
VERSION="3.6" | ||
HOMEPAGE="https://github.com/troglobit/mg" | ||
DOWNLOAD="https://github.com/troglobit/mg/releases/download/v3.6/mg-3.6.tar.gz" | ||
MD5SUM="a6eab531431abd3c9e1dbb18749e30b9" | ||
|
@@ -8,4 +8,3 @@ MD5SUM_x86_64="" | |
REQUIRES="" | ||
MAINTAINER="Marco Marini" | ||
EMAIL="[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters