diff options
author | orbea <orbea@riseup.net> | 2020-06-09 11:49:20 -0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-06-14 17:45:56 +0700 |
commit | 9cd772d1936abf7f3b2af59cd8a3e05be80cfd0d (patch) | |
tree | 800751122f2660904152a74b5143a33d67ed03b9 /system/loksh | |
parent | 24a40c03904b0cf2d2a73f09a90cef85fd2b5082 (diff) |
system/loksh: Updated for version 6.7.2.
Signed-off-by: orbea <orbea@riseup.net>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/loksh')
-rw-r--r-- | system/loksh/loksh.SlackBuild | 47 | ||||
-rw-r--r-- | system/loksh/loksh.info | 8 |
2 files changed, 37 insertions, 18 deletions
diff --git a/system/loksh/loksh.SlackBuild b/system/loksh/loksh.SlackBuild index 31f9e194c81a..3720480e916f 100644 --- a/system/loksh/loksh.SlackBuild +++ b/system/loksh/loksh.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for loksh -# Copyright 2018-2019 Hunter Sezen California, USA +# Copyright 2018-2020 Hunter Sezen California, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=loksh -VERSION=${VERSION:-6.6} +VERSION=${VERSION:-6.7.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -59,9 +59,9 @@ set -eu rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $PRGNAM +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz +cd $PRGNAM chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -69,16 +69,35 @@ find -L . \ \( -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" +if [ "${DEBUG:=0}" != 0 ]; then + NDEBUG=false + RELEASE=debug + SLKCFLAGS="$(printf %s "$SLKCFLAGS" | sed 's/-O2/-O0/')" +else + NDEBUG=true + RELEASE=plain +fi -make install \ - PREFIX=/usr \ - BIN_NAME=$PRGNAM \ - BIN_DIR=/bin \ - MAN_DIR=/usr/man \ - DOC_DIR=/usr/doc/$PRGNAM-$VERSION \ - DESTDIR=$PKG +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +meson \ + --prefix=/ \ + --bindir=bin \ + --libdir=usr/lib${LIBDIRSUFFIX} \ + --mandir=usr/man \ + --datadir=usr \ + -Dstrip=$NDEBUG \ + -Db_ndebug=$NDEBUG \ + -Dbuildtype=$RELEASE \ + build + +"${NINJA:=ninja}" -C build +DESTDIR=$PKG "$NINJA" -C build install + +mv -- $PKG/bin/ksh $PKG/bin/$PRGNAM +mv -- $PKG/usr/man/man1/ksh.1 $PKG/usr/man/man1/$PRGNAM.1 +mv -- $PKG/usr/man/man1/sh.1 $PKG/usr/man/man1/$PRGNAM-sh.1 +mv -- $PKG/usr/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/bin ln -s /bin/$PRGNAM $PKG/usr/bin/$PRGNAM diff --git a/system/loksh/loksh.info b/system/loksh/loksh.info index 7c68610ff481..5e3d180812e3 100644 --- a/system/loksh/loksh.info +++ b/system/loksh/loksh.info @@ -1,10 +1,10 @@ PRGNAM="loksh" -VERSION="6.6" +VERSION="6.7.2" HOMEPAGE="https://github.com/dimkr/loksh" -DOWNLOAD="https://github.com/dimkr/loksh/archive/6.6/loksh-6.6.tar.gz" -MD5SUM="06b00072a7b41075f78c8d5ebfd5c1ef" +DOWNLOAD="https://github.com/dimkr/loksh/releases/download/6.7.2/loksh-6.7.2.tar.xz" +MD5SUM="abe82b1d897e28f55f88fa030a854425" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="" +REQUIRES="meson" MAINTAINER="Hunter Sezen" EMAIL="orbea@riseup.net" |