Skip to content

Commit

Permalink
Slackware 15 compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
saidone75 committed Apr 18, 2023
1 parent dd8f2b9 commit b00a5ef
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
3 changes: 2 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ Compatibility with GNU Emacs is key for Mg, separating it from other
ErsatzEmacs clones, because there should never be any reason to learn
more than one Emacs flavor.

homepage: https://github.com/troglobit/mg
homepage: https://github.com/troglobit/mg

16 changes: 13 additions & 3 deletions mg-troglobit.SlackBuild
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
Expand All @@ -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}
Expand Down Expand Up @@ -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
3 changes: 1 addition & 2 deletions mg-troglobit.info
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"
Expand All @@ -8,4 +8,3 @@ MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Marco Marini"
EMAIL="[email protected]"

4 changes: 2 additions & 2 deletions slack-desc
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ mg-troglobit:
mg-troglobit: The intention is to be a small, fast, and portable Emacs-like editor
mg-troglobit: for users who cannot, or do not want to, run the real Emacs for one
mg-troglobit: reason or another.
mg-troglobit:
mg-troglobit:
mg-troglobit: Compatibility with GNU Emacs is key for Mg, separating it from other
mg-troglobit: ErsatzEmacs clones, because there should never be any reason to learn
mg-troglobit: more than one Emacs flavor.
mg-troglobit:
mg-troglobit:
mg-troglobit: homepage: https://github.com/troglobit/mg

0 comments on commit b00a5ef

Please sign in to comment.