diff options
author | B. Watson <yalhcru@gmail.com> | 2022-02-08 14:45:46 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-09 09:35:15 +0700 |
commit | 63ab00c61d57b439fdfd74b967f0dd5cfa8b9223 (patch) | |
tree | 1eb16a2da15d9e9ada7bfef7f4c1ffe8314b283c | |
parent | 3d42ced9fcd14258306c0504a94b536923276aea (diff) |
desktop/wmbutton: New maintainer, add icon.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | desktop/wmbutton/doinst.sh | 9 | ||||
-rw-r--r-- | desktop/wmbutton/wmbutton.SlackBuild | 43 | ||||
-rw-r--r-- | desktop/wmbutton/wmbutton.info | 4 |
3 files changed, 32 insertions, 24 deletions
diff --git a/desktop/wmbutton/doinst.sh b/desktop/wmbutton/doinst.sh index df0732a36504..0ad4d2cc7615 100644 --- a/desktop/wmbutton/doinst.sh +++ b/desktop/wmbutton/doinst.sh @@ -1,14 +1,11 @@ config() { NEW="$1" OLD="$(dirname $NEW)/$(basename $NEW .new)" - # If there's no config file by that name, mv it over: if [ ! -r $OLD ]; then mv $NEW $OLD elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then - # toss the redundant copy rm $NEW fi - # Otherwise, we leave the .new copy for the admin to consider... } config etc/wmbutton.conf.new @@ -16,3 +13,9 @@ config etc/wmbutton.conf.new if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/desktop/wmbutton/wmbutton.SlackBuild b/desktop/wmbutton/wmbutton.SlackBuild index 5e6dd1027dd8..7975b26ee8e0 100644 --- a/desktop/wmbutton/wmbutton.SlackBuild +++ b/desktop/wmbutton/wmbutton.SlackBuild @@ -22,11 +22,17 @@ # 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>. + +# 20220208 bkw: BUILD=2 +# - take over maintenance. +# - add icon. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=wmbutton VERSION=${VERSION:-0.7.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -38,9 +44,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -73,11 +76,10 @@ 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 {} \+ + +echo "Icon=$PRGNAM" >> $PRGNAM.desktop CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -91,19 +93,22 @@ CXXFLAGS="$SLKCFLAGS" \ --build=$ARCH-slackware-linux make -make install 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 +make install-strip DESTDIR=$PKG +gzip -9 $PKG/usr/man/man*/* mv $PKG/etc/wmbutton.conf $PKG/etc/wmbutton.conf.new -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a COPYING ChangeLog README $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +mkdir -p $PKG/usr/share/icons/hicolor/64x64/apps \ + $PKG/usr/share/pixmaps +convert -extent 64x64 -background none -gravity center \ + icons/buttons2.xpm \ + $PKG/usr/share/icons/hicolor/64x64/apps/$PRGNAM.png +ln -s ../icons/hicolor/64x64/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png + +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKGDOC +cp -a COPYING ChangeLog README $PKGDOC +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc diff --git a/desktop/wmbutton/wmbutton.info b/desktop/wmbutton/wmbutton.info index 48c7f9f6eab7..aca8582e0c14 100644 --- a/desktop/wmbutton/wmbutton.info +++ b/desktop/wmbutton/wmbutton.info @@ -6,5 +6,5 @@ MD5SUM="74dc185fabcfd90c96872847c23b8734" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -MAINTAINER="Michael Heras" -EMAIL="userxbw@gmail.com" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" |