aboutsummaryrefslogtreecommitdiff
path: root/system/ksh-openbsd
diff options
context:
space:
mode:
authorLEVAI Daniel <leva@ecentrum.hu>2019-02-18 07:21:22 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-02-18 07:21:22 +0700
commit8c116ed337586d7687c6ed5f3c1445f1e9c88657 (patch)
treea787f67e4af1a8484876a5fbddff8d3114171ecc /system/ksh-openbsd
parentcab373f3e724e9e17ba73fb2a06e9871dd7d8051 (diff)
system/ksh-openbsd: Updated for version 20190127.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/ksh-openbsd')
-rw-r--r--system/ksh-openbsd/README3
-rw-r--r--system/ksh-openbsd/ksh-openbsd.SlackBuild15
-rw-r--r--system/ksh-openbsd/ksh-openbsd.info6
3 files changed, 17 insertions, 7 deletions
diff --git a/system/ksh-openbsd/README b/system/ksh-openbsd/README
index 8c23245a83d73..ced571d1a86cc 100644
--- a/system/ksh-openbsd/README
+++ b/system/ksh-openbsd/README
@@ -6,3 +6,6 @@ besides the Linux port bits).
See the Changelog.ksh-openbsd and the homepage for more information about the
changes: https://github.com/levaidaniel/ksh-openbsd
+
+There's a build option (PDKSH_BINNAME) to change the binary and manual names
+during build.
diff --git a/system/ksh-openbsd/ksh-openbsd.SlackBuild b/system/ksh-openbsd/ksh-openbsd.SlackBuild
index 529530c8c8bb7..7316be7a00e74 100644
--- a/system/ksh-openbsd/ksh-openbsd.SlackBuild
+++ b/system/ksh-openbsd/ksh-openbsd.SlackBuild
@@ -28,7 +28,7 @@
# Build script for the Linux port of OpenBSD's ksh
PRGNAM=ksh-openbsd
-VERSION=${VERSION:-20180115}
+VERSION=${VERSION:-20190127}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -79,9 +79,16 @@ CFLAGS="$SLKCFLAGS $(getconf LFS_CFLAGS)" make
make check
make install DESTDIR=$PKG
-strip --strip-unneeded $PKG/bin/pdksh
-gzip -9 $PKG/usr/man/man1/pdksh.1
-gzip -9 $PKG/usr/man/man1/pdksh-sh.1
+if [ -n "${PDKSH_BINNAME}" ];then
+ mv $PKG/bin/pdksh $PKG/bin/"${PDKSH_BINNAME}"
+ mv $PKG/usr/man/man1/pdksh.1 $PKG/usr/man/man1/"${PDKSH_BINNAME}".1
+ mv $PKG/usr/man/man1/pdksh-sh.1 $PKG/usr/man/man1/"${PDKSH_BINNAME}"-sh.1
+fi
+BINNAME=${PDKSH_BINNAME:-pdksh}
+
+strip --strip-unneeded $PKG/bin/"${BINNAME}"
+gzip -9 $PKG/usr/man/man1/"${BINNAME}".1
+gzip -9 $PKG/usr/man/man1/"${BINNAME}"-sh.1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
diff --git a/system/ksh-openbsd/ksh-openbsd.info b/system/ksh-openbsd/ksh-openbsd.info
index be79c4e289ef4..bf733c7017976 100644
--- a/system/ksh-openbsd/ksh-openbsd.info
+++ b/system/ksh-openbsd/ksh-openbsd.info
@@ -1,8 +1,8 @@
PRGNAM="ksh-openbsd"
-VERSION="20180115"
+VERSION="20190127"
HOMEPAGE="https://github.com/levaidaniel/ksh-openbsd"
-DOWNLOAD="https://github.com/levaidaniel/ksh-openbsd/archive/20180115.tar.gz"
-MD5SUM="738aaeaed76fa05feaa8900040fd16b1"
+DOWNLOAD="https://github.com/levaidaniel/ksh-openbsd/archive/20190127.tar.gz"
+MD5SUM="a039295afd4e917c6a74901dacac6f28"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="libbsd"