summaryrefslogtreecommitdiff
path: root/system/ksh-openbsd
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-03-18 11:48:08 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-03-20 20:45:13 +0700
commitcb38f8ade927d8a1ef9214479a2a94ba72f9c412 (patch)
treee1557cb8407a65507a24b1361efd7f622b6ab2de /system/ksh-openbsd
parentde0652471d58d0abf489caffded8ef8a1e4d9253 (diff)
downloadslackbuilds-cb38f8ade927d8a1ef9214479a2a94ba72f9c412.tar.gz
system/ksh-openbsd: Use correct github URL.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/ksh-openbsd')
-rw-r--r--system/ksh-openbsd/ksh-openbsd.SlackBuild16
-rw-r--r--system/ksh-openbsd/ksh-openbsd.info2
2 files changed, 7 insertions, 11 deletions
diff --git a/system/ksh-openbsd/ksh-openbsd.SlackBuild b/system/ksh-openbsd/ksh-openbsd.SlackBuild
index db0480949b..14ff80f834 100644
--- a/system/ksh-openbsd/ksh-openbsd.SlackBuild
+++ b/system/ksh-openbsd/ksh-openbsd.SlackBuild
@@ -43,9 +43,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -75,24 +72,23 @@ rm -Rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -Rf $PRGNAM-$VERSION
-[ -e $CWD/$VERSION.tar.gz ] && tar xvf $CWD/$VERSION.tar.gz
-[ -e $CWD/$PRGNAM-$VERSION.tar.gz ] && tar xf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
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 \
+ -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ -exec chmod 644 {} \+
CFLAGS="$SLKCFLAGS $(getconf LFS_CFLAGS)" make
make check
make install DESTDIR=$PKG
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
+ 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}
diff --git a/system/ksh-openbsd/ksh-openbsd.info b/system/ksh-openbsd/ksh-openbsd.info
index 0430f276b5..13f3ae15ae 100644
--- a/system/ksh-openbsd/ksh-openbsd.info
+++ b/system/ksh-openbsd/ksh-openbsd.info
@@ -1,7 +1,7 @@
PRGNAM="ksh-openbsd"
VERSION="20190804"
HOMEPAGE="https://github.com/levaidaniel/ksh-openbsd"
-DOWNLOAD="https://github.com/levaidaniel/ksh-openbsd/archive/20190804.tar.gz"
+DOWNLOAD="https://github.com/levaidaniel/ksh-openbsd/archive/ksh-openbsd-20190804.tar.gz"
MD5SUM="e9f4502ecfa0bc61618ecfd819d1b9f0"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""