diff options
Diffstat (limited to 'desktop/mhsetroot/mhsetroot.SlackBuild')
-rw-r--r-- | desktop/mhsetroot/mhsetroot.SlackBuild | 46 |
1 files changed, 35 insertions, 11 deletions
diff --git a/desktop/mhsetroot/mhsetroot.SlackBuild b/desktop/mhsetroot/mhsetroot.SlackBuild index a8fb001990..678211dc1a 100644 --- a/desktop/mhsetroot/mhsetroot.SlackBuild +++ b/desktop/mhsetroot/mhsetroot.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Slackware build script for mhsetroot # @@ -22,10 +22,28 @@ # 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 <urchlay@slackware.uk>. + +# 20230108 bkw: BUILD=3, fix breakage due to imlib2-0.10.0. + +# 20220208 bkw: BUILD=2 +# - take over maintenance. +# - install AUTHORS and COPYING to doc dir. + +# 20220208 bkw: There is a mhsetroot-2.0 on the sourceforge page, +# but it has issues. There is no documentatation at all (not even a +# README), it aborts with a double-free error every time it exits, +# it creates a "~/mhsetrootimage" when it runs (not in a dot dir), and +# its options are totally incompatible with 1.6.2's. Not updating to +# 2.0, but possibly the 2.x branch will mature someday. + +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=mhsetroot VERSION=${VERSION:-1.6.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +53,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} @@ -63,11 +85,12 @@ rm -rf $PRGNAM-$VERSION 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 \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ + +cat $CWD/imlib2-config-fake > imlib2-config +chmod +x imlib2-config +export PATH=$(pwd):$PATH CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS -std=c++11" \ @@ -78,12 +101,13 @@ CXXFLAGS="$SLKCFLAGS -std=c++11" \ make make install-strip DESTDIR=$PKG -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a ChangeLog README $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKGDOC +cp -a AUTHORS COPYING ChangeLog README $PKGDOC +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild 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 |