diff options
author | B. Watson <yalhcru@gmail.com> | 2022-02-08 01:46:57 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-09 09:35:14 +0700 |
commit | 6f0797ad1a5197dabd044cec2453cf4b0b8714ac (patch) | |
tree | 5daf812a97929aaa54592d2a3541f9c445c2439c /desktop/buttonmaker | |
parent | ce432ca8e3e780c213eed3f61f042cf929b3f917 (diff) | |
download | slackbuilds-6f0797ad1a5197dabd044cec2453cf4b0b8714ac.tar.gz |
desktop/buttonmaker: New maintainer.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/buttonmaker')
-rw-r--r-- | desktop/buttonmaker/README | 5 | ||||
-rw-r--r-- | desktop/buttonmaker/buttonmaker.SlackBuild | 76 | ||||
-rw-r--r-- | desktop/buttonmaker/buttonmaker.info | 4 | ||||
-rw-r--r-- | desktop/buttonmaker/slack-desc | 2 |
4 files changed, 45 insertions, 42 deletions
diff --git a/desktop/buttonmaker/README b/desktop/buttonmaker/README index 034ee22de0..e7d506552c 100644 --- a/desktop/buttonmaker/README +++ b/desktop/buttonmaker/README @@ -1,4 +1,7 @@ -ButtonMaker +buttonmaker (simple launcher dockapp for windowmaker) + Like other button dockapps, it’s a button that runs a command. It has support for png, jpeg, xpm, tiff, etc. thanks to Imlib2. You can use an image of your choice to display on the button. + +There is no man page or README, but try "buttonmaker --help". diff --git a/desktop/buttonmaker/buttonmaker.SlackBuild b/desktop/buttonmaker/buttonmaker.SlackBuild index 8839b80b7e..c342630976 100644 --- a/desktop/buttonmaker/buttonmaker.SlackBuild +++ b/desktop/buttonmaker/buttonmaker.SlackBuild @@ -22,12 +22,26 @@ # 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 +# - fix for 15.0, and actually use SLKCFLAGS. +# - update README and slack-desc a bit. +# - simplify the horrid sed code that was here before. + +# Note: this dockapp looks pretty useless to me, as a windowmaker +# dockapp... because windowmaker already supports docking app icons, +# and launches them on double-click. I can see a possible use case +# *outside* of windowmaker, as a low-resource-usage launcher button +# for an even simpler window manager... + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=buttonmaker SRCNAM=ButtonMaker VERSION=${VERSION:-0.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -39,9 +53,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 @@ -74,52 +85,41 @@ rm -rf $SRCNAM tar xvf $CWD/$SRCNAM.tar.gz cd $SRCNAM 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 {} \; - -#fix code in main.c to prevent dockapp from exit on right click -sed -i ' -/exit(0)/{ - x - # add a dot to the hold space - s/$/./ - # #dots==#desired? - /^.\{2\}$/{ - # do the replacement action - x - s:exit(0):/* removed */: - x - } - x -} -' $PWD/src/main.c -#and interpreting the command properly on the left button click -sed -i -e '0,/strcat/ s/strcat/strcpy/' $PWD/src/main.c +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ + +# don't exit on right click, and interpret the cmd properly on left click. +sed -i -e '0,/strcat/ s/strcat/strcpy/' \ + -e '/exit(0);/d' \ + $PWD/src/main.c + +DOCDIR=/usr/doc/$PRGNAM-$VERSION +PKGDOC=$PKG/$DOCDIR + +SLKCFLAGS+=" -fcommon" CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ -./autogen.sh -./configure \ +./autogen.sh \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --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 +make V=1 +make install-strip DESTDIR=$PKG -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a ChangeLog COPYING INSTALL $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/${PRGNAM}.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/${PRGNAM}.SlackBuild +# INSTALL is useless, NEWS AUTHORS README ChangeLog are empty placeholders. +# They all got installed here... rm -rf $PKG/usr/doc/$PRGNAM +# Our one actual documentation file: +mkdir -p $PKGDOC +cp -a COPYING $PKGDOC + +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc diff --git a/desktop/buttonmaker/buttonmaker.info b/desktop/buttonmaker/buttonmaker.info index c36985337f..56c9599264 100644 --- a/desktop/buttonmaker/buttonmaker.info +++ b/desktop/buttonmaker/buttonmaker.info @@ -6,5 +6,5 @@ MD5SUM="3f09e9417408a90f2ea1b2a49870e7f0" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="imlib2" -MAINTAINER="Michael Heras" -EMAIL="userxbw@gmail.com" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" diff --git a/desktop/buttonmaker/slack-desc b/desktop/buttonmaker/slack-desc index 047e9f0ae1..b4d059d33c 100644 --- a/desktop/buttonmaker/slack-desc +++ b/desktop/buttonmaker/slack-desc @@ -6,7 +6,7 @@ # customary to leave one space after the ':' except on otherwise blank lines. |-----handy-ruler------------------------------------------------------| -buttonmaker: buttonmaker (dockapps) +buttonmaker: buttonmaker (simple launcher dockapp for windowmaker) buttonmaker: buttonmaker: Like other button dockapps, it is a button that runs a command. buttonmaker: It has support for png, jpeg, xpm, tiff, etc. thanks to Imlib2. |