diff options
Diffstat (limited to 'system/ksh-openbsd/ksh-openbsd.SlackBuild')
-rw-r--r-- | system/ksh-openbsd/ksh-openbsd.SlackBuild | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/system/ksh-openbsd/ksh-openbsd.SlackBuild b/system/ksh-openbsd/ksh-openbsd.SlackBuild index 32131c7f7ad8a..1940a9e41f66d 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=20130611 +VERSION=20131129 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -64,9 +64,10 @@ set -e rm -Rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -Rf $PRGNAM -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM +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 +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 \) \ @@ -74,14 +75,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -for patch in "${CWD}"/patches/*.diff; do - patch -p0 < "${patch}" -done -for patch in "${CWD}"/patches/linux/*.diff; do - patch -p1 < "${patch}" -done - CFLAGS="$SLKCFLAGS $(getconf LFS_CFLAGS)" make +make check make install DESTDIR=$PKG strip --strip-unneeded $PKG/bin/pdksh |