summaryrefslogtreecommitdiffstats
path: root/system/entr
diff options
context:
space:
mode:
Diffstat (limited to 'system/entr')
-rw-r--r--system/entr/entr.SlackBuild26
-rw-r--r--system/entr/entr.info8
2 files changed, 21 insertions, 13 deletions
diff --git a/system/entr/entr.SlackBuild b/system/entr/entr.SlackBuild
index 671ea40e31..122010ab42 100644
--- a/system/entr/entr.SlackBuild
+++ b/system/entr/entr.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for entr
-# Copyright 2014-2016 Kent Fritz, Mountain View, CA
+# Copyright 2014-2022 Kent Fritz, Mountain View, CA
# 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=entr
-VERSION=${VERSION:-3.6}
+VERSION=${VERSION:-5.3}
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}
@@ -59,11 +69,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-DIRNAME=`tar tf $CWD/$PRGNAM-$VERSION.tar.gz | head -1 | cut -d/ -f1`
-[ "${DIRNAME}" = "" -o "$DIRNAME" = "/" ] && exit 1
-rm -rf $DIRNAME
+rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $DIRNAME
+cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -88,4 +96,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/system/entr/entr.info b/system/entr/entr.info
index f1b145b004..10dd307e5a 100644
--- a/system/entr/entr.info
+++ b/system/entr/entr.info
@@ -1,8 +1,8 @@
PRGNAM="entr"
-VERSION="3.6"
-HOMEPAGE="http://entrproject.org"
-DOWNLOAD="http://entrproject.org/code/entr-3.6.tar.gz"
-MD5SUM="072eed7153296a8fae6ebdedefed9fd4"
+VERSION="5.3"
+HOMEPAGE="http://eradman.com/entrproject"
+DOWNLOAD="http://eradman.com/entrproject/code/entr-5.3.tar.gz"
+MD5SUM="824b606a63e7b7c50dd4fb26cf34214b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""