summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2020-02-24 03:06:31 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-02-29 07:45:14 +0700
commit5f890907a2fbc09f9a60ebff457fde7ee5a8142e (patch)
treea487b6acceb282e077e351f2ff2c116ce7fe94bc
parentcfe156c6b71f993ccaff7ae167f3fdbe4f8df055 (diff)
downloadslackbuilds-5f890907a2fbc09f9a60ebff457fde7ee5a8142e.tar.gz
development/unifdef: Updated for version 2.12.
Signed-off-by: B. Watson <yalhcru@gmail.com>
-rw-r--r--development/unifdef/unifdef.SlackBuild13
-rw-r--r--development/unifdef/unifdef.info6
2 files changed, 10 insertions, 9 deletions
diff --git a/development/unifdef/unifdef.SlackBuild b/development/unifdef/unifdef.SlackBuild
index e75caacb52..e6aa66523f 100644
--- a/development/unifdef/unifdef.SlackBuild
+++ b/development/unifdef/unifdef.SlackBuild
@@ -7,7 +7,7 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
PRGNAM=unifdef
-VERSION=${VERSION:-2.11}
+VERSION=${VERSION:-2.12}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -47,16 +47,17 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
cd $PRGNAM-$VERSION
chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
make CFLAGS="$SLKCFLAGS" DESTDIR=$PKG
mkdir -p $PKG/usr/bin $PKG/usr/man/man1
+# Test suite fails 1 of the 90 tests. The test itself is
+# broken: it expects to be run as a non-root user.
+[ "${TESTSUITE:-no}" = "yes" ] && rm -f tests/outeperm.* && make test
+
# manual install = less code than hacking 'make install'
install -s -m0755 $PRGNAM $PKG/usr/bin
install -m0755 ${PRGNAM}all.sh $PKG/usr/bin/${PRGNAM}all
diff --git a/development/unifdef/unifdef.info b/development/unifdef/unifdef.info
index 1371eac9d5..df9a902bbd 100644
--- a/development/unifdef/unifdef.info
+++ b/development/unifdef/unifdef.info
@@ -1,8 +1,8 @@
PRGNAM="unifdef"
-VERSION="2.11"
+VERSION="2.12"
HOMEPAGE="http://dotat.at/prog/unifdef/"
-DOWNLOAD="http://dotat.at/prog/unifdef/unifdef-2.11.tar.xz"
-MD5SUM="337053fd8a7d9ab3adf5e50f88af95b7"
+DOWNLOAD="http://dotat.at/prog/unifdef/unifdef-2.12.tar.xz"
+MD5SUM="ae8c0b3b4c43c1f6bc5f32412a820818"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""