diff options
Diffstat (limited to 'desktop/9menu/9menu.SlackBuild')
-rw-r--r-- | desktop/9menu/9menu.SlackBuild | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/desktop/9menu/9menu.SlackBuild b/desktop/9menu/9menu.SlackBuild index f3299b6eaf..8eb46ce8b5 100644 --- a/desktop/9menu/9menu.SlackBuild +++ b/desktop/9menu/9menu.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for 9menu -# Copyright 2014 Leonard Schmidt <lems@gmx.net> +# Copyright 2014 Leonard Schmidt <email removed> # All rights reserved. # # Permission to use, copy, modify, and distribute this software for any purpose @@ -20,9 +20,18 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Now maintained by B. Watson <yalhcru@gmail.com>. + +# 20180628 bkw: +# - Take over maintenance. +# - Use github .tar.gz release. NO WAY am I leaving this: +# zcat $CWD/$PRGNAM-$VERSION.shar.gz | sh +# ...in a scipt to be run by root! +# - Include ChangeLog in doc dir, bump BUILD to 2. + PRGNAM=9menu VERSION=${VERSION:-1.9} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -54,33 +63,27 @@ fi set -e +# Perfidious misuse of tags, I say! Harrumph! +TARNAM=$PRGNAM-$PRGNAM-release-$VERSION + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -mkdir $PRGNAM-$VERSION -cd $PRGNAM-$VERSION -zcat $CWD/$PRGNAM-$VERSION.shar.gz | sh +rm -rf $TARNAM +tar xvf $CWD/$TARNAM.tar.gz +cd $TARNAM ln -s 9menu.1 9menu.man 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 {} \; +chmod 644 * xmkmf -a make CDEBUGFLAGS="$SLKCFLAGS" +strip $PRGNAM make install install.man DESTDIR=$PKG - -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -find $PKG/usr/man -type f -exec gzip -9 {} \; -for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +gzip -9 $PKG/usr/man/man?/*.* mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a README $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README* ChangeLog* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |