diff options
Diffstat (limited to 'audio/connie/connie.SlackBuild')
-rw-r--r-- | audio/connie/connie.SlackBuild | 43 |
1 files changed, 32 insertions, 11 deletions
diff --git a/audio/connie/connie.SlackBuild b/audio/connie/connie.SlackBuild index af92a2e804..a82ca960c9 100644 --- a/audio/connie/connie.SlackBuild +++ b/audio/connie/connie.SlackBuild @@ -1,15 +1,20 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for connie -# 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. +# 20211130 bkw: BUILD=2, new-style icons. + +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=connie VERSION=${VERSION:-0.4.3rc9} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -19,7 +24,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} @@ -44,17 +53,16 @@ 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 {} \+ # SSE isn't autodetected SSE=${SSE:-yes} # QT is left disabled by default because it's experimental. It works, # but is basically useless. +# 20211130 bkw: Slackware -current dropped qt4, and SBo hasn't picked it +# up yet, and this won't with with 5. So even more useless than before. QT=${QT:-no} if [ "$SSE" = "yes" ]; then @@ -81,8 +89,21 @@ make $TARGET mkdir -p $PKG/usr/bin $PKG/usr/man/man1 install -s -m0755 $TARGET $PKG/usr/bin/$PRGNAM +for px in 16 32 48 64; do + size=${px}x${px} + dir=$PKG/usr/share/icons/hicolor/$size/apps + mkdir -p $dir + convert -resize $size $PRGNAM.png $dir/$PRGNAM.png +done + +# original icon is 116x116, do not embiggen. +mkdir -p $PKG/usr/share/icons/hicolor/128x128/apps +convert -background none -extent 128x128 -gravity center \ + $PRGNAM.png \ + $PKG/usr/share/icons/hicolor/128x128/apps/$PRGNAM.png + mkdir -p $PKG/usr/share/pixmaps -cat $PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png +ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png # .desktop written for this SlackBuild mkdir -p $PKG/usr/share/applications @@ -129,4 +150,4 @@ if [ "${SETCAP:-yes}" = "yes" ]; then fi 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 |