summaryrefslogtreecommitdiffstats
path: root/libraries/libfaketime
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libfaketime')
-rw-r--r--libraries/libfaketime/README11
-rw-r--r--libraries/libfaketime/libfaketime.SlackBuild20
-rw-r--r--libraries/libfaketime/libfaketime.info6
3 files changed, 24 insertions, 13 deletions
diff --git a/libraries/libfaketime/README b/libraries/libfaketime/README
index cec958c321..75c5be3705 100644
--- a/libraries/libfaketime/README
+++ b/libraries/libfaketime/README
@@ -1,10 +1,11 @@
libfaketime intercepts various system calls which programs use to
-retrieve the current date and time. It can then report faked dates and times
-(as specified by you, the user) to these programs. This means you can modify
-the system time a program sees without having to change the time system-wide.
+retrieve the current date and time. It can then report faked dates and
+times (as specified by you, the user) to these programs. This means
+you can modify the system time a program sees without having to change
+the time system-wide.
-libfaketime allows you to specify both absolute dates (e.g., 01/01/2004) and
-relative dates (e.g., 10 days ago).
+libfaketime allows you to specify both absolute dates (e.g.,
+01/01/2004) and relative dates (e.g., 10 days ago).
libfaketime might be used for various purposes, for example
diff --git a/libraries/libfaketime/libfaketime.SlackBuild b/libraries/libfaketime/libfaketime.SlackBuild
index d6aba11ab7..70ce838f4a 100644
--- a/libraries/libfaketime/libfaketime.SlackBuild
+++ b/libraries/libfaketime/libfaketime.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for libfaketime
-# Copyright 2016-2017 Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
+# Copyright 2016-2021 Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
# 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=libfaketime
-VERSION=${VERSION:-0.9.7}
+VERSION=${VERSION:-0.9.9}
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}
@@ -91,4 +101,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/libraries/libfaketime/libfaketime.info b/libraries/libfaketime/libfaketime.info
index 52144d4a38..6b7bed9c56 100644
--- a/libraries/libfaketime/libfaketime.info
+++ b/libraries/libfaketime/libfaketime.info
@@ -1,8 +1,8 @@
PRGNAM="libfaketime"
-VERSION="0.9.7"
+VERSION="0.9.9"
HOMEPAGE="https://github.com/wolfcw/libfaketime"
-DOWNLOAD="https://github.com/wolfcw/libfaketime/archive/v0.9.7/libfaketime-0.9.7.tar.gz"
-MD5SUM="8617e2c6caf0977b3ce9a271f867302c"
+DOWNLOAD="https://github.com/wolfcw/libfaketime/archive/v0.9.9/libfaketime-0.9.9.tar.gz"
+MD5SUM="1f784c9c0ec7807b9d1107d1730dbb41"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""