diff options
Diffstat (limited to 'system/lv/lv.SlackBuild')
-rw-r--r-- | system/lv/lv.SlackBuild | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/system/lv/lv.SlackBuild b/system/lv/lv.SlackBuild index eb8c06c100..3689d297a6 100644 --- a/system/lv/lv.SlackBuild +++ b/system/lv/lv.SlackBuild @@ -1,22 +1,28 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for lv -# Written by B. Watson (yalhcru@gmail.com) +# Written by B. Watson (urchlay@slackware.uk) # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20210824 bkw: update for v4.51_8, which includes all the patches +# that used to be in patches/ here. + +# 20201115 bkw: add 2 new patches from Debian git, BUILD=2. + # 20201111 bkw: added at v4.51_7. The original upstream for this is # long gone (dead website), but the maintainer of the Debian package # continues to develop this. So I'm treating Debian as upstream, and # the _7 in VERSION is the Debian patchlevel. -# 20201115 bkw: add 2 new patches from Debian git, BUILD=2. +cd $(dirname $0) ; CWD=$(pwd) PRGNAM=lv -VERSION=${VERSION:-4.51_7} -BUILD=${BUILD:-2} +VERSION=${VERSION:-4.51_8} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -26,7 +32,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -58,18 +68,12 @@ chown -R root:root . find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ -# Apply all of debian's patches. +# Apply all of debian's patches, some of which used to be part of +# this SlackBuild (upstream likes them, yay!) for i in $( cat debian/patches/series ); do patch -p1 < "debian/patches/$i" done -# Local patches. 4 of these were written by the SlackBuild author, sent -# upstream (to the Debian maintainer). The height and filename patches -# are from Debian's git. -for i in $( cat $CWD/patches/series ); do - patch -p1 < "$CWD/patches/$i" -done - # I wish there were --disable-termcap and/or --enable-ncurses options. # The configure script is hardcoded: if termcap is found, it uses that # and never looks for ncurses. Since termcap is pretty well deprecated @@ -116,4 +120,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |