diff options
Diffstat (limited to 'academic/wmcalc/wmcalc.SlackBuild')
-rw-r--r-- | academic/wmcalc/wmcalc.SlackBuild | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/academic/wmcalc/wmcalc.SlackBuild b/academic/wmcalc/wmcalc.SlackBuild index c8e2eb286b6a..0b75dc766c72 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 |