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 /desktop/wmbutton/wmbutton.SlackBuild | |
parent | 3d42ced9fcd14258306c0504a94b536923276aea (diff) | |
download | slackbuilds-63ab00c61d57b439fdfd74b967f0dd5cfa8b9223.tar.gz |
desktop/wmbutton: New maintainer, add icon.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/wmbutton/wmbutton.SlackBuild')
-rw-r--r-- | desktop/wmbutton/wmbutton.SlackBuild | 43 |
1 files changed, 24 insertions, 19 deletions
diff --git a/desktop/wmbutton/wmbutton.SlackBuild b/desktop/wmbutton/wmbutton.SlackBuild index 5e6dd1027d..7975b26ee8 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 |