aboutsummaryrefslogtreecommitdiff
path: root/academic/wmcalc/wmcalc.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2018-09-11 15:46:31 -0400
committerDavid Spencer <idlemoor@slackbuilds.org>2018-09-15 19:23:41 +0100
commitfb4f25ce90c82c70dbcb03356b69deb7808e247e (patch)
treeac12e05e321d97da3f4d865961da4853b591fc72 /academic/wmcalc/wmcalc.SlackBuild
parentb607dff7114b0ede37d48227c83dbb3502ac5cd9 (diff)
academic/wmcalc: Updated for version 0.7.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'academic/wmcalc/wmcalc.SlackBuild')
-rw-r--r--academic/wmcalc/wmcalc.SlackBuild35
1 files changed, 19 insertions, 16 deletions
diff --git a/academic/wmcalc/wmcalc.SlackBuild b/academic/wmcalc/wmcalc.SlackBuild
index c8e2eb286b6a4..0b75dc766c72f 100644
--- a/academic/wmcalc/wmcalc.SlackBuild
+++ b/academic/wmcalc/wmcalc.SlackBuild
@@ -27,6 +27,8 @@
# Now maintained by B. Watson <yalhcru@gmail.com>
+# 20180911 bkw: update for v0.7.
+
# 20160816 bkw:
# - take over maintenance
# - BUILD=2
@@ -42,14 +44,10 @@
# - previous version installed man page in wrong place
PRGNAM=wmcalc
-VERSION=${VERSION:-0.6}
+VERSION=${VERSION:-0.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# annoyingly, the directory inside the tarball isn't named $PRGNAM-$VERSION
-# or even just $PRGNAM. Instead:
-TARDIR=dockapps-43ddcdf
-
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
@@ -82,19 +80,24 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $TARDIR
+rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $TARDIR
+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 {} \;
-
-make CFLAGS="$SLKCFLAGS"
-strip $PRGNAM
-make install DESTDIR=$PKG PREFIX=/usr MANDIR=/usr/man/man1
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --build=$ARCH-slackware-linux
+make install-strip DESTDIR=$PKG PREFIX=/usr MANDIR=/usr/man/man1
gzip -9 $PKG/usr/man/man1/$PRGNAM.1
mv $PKG/etc/$PRGNAM.conf $PKG/etc/$PRGNAM.conf.new