desktop/buttonmaker: New maintainer.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
ce432ca8e3
commit
6f0797ad1a
|
@ -1,4 +1,7 @@
|
||||||
ButtonMaker
|
buttonmaker (simple launcher dockapp for windowmaker)
|
||||||
|
|
||||||
Like other button dockapps, it’s a button that runs a command.
|
Like other button dockapps, it’s a button that runs a command.
|
||||||
It has support for png, jpeg, xpm, tiff, etc. thanks to Imlib2.
|
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.
|
You can use an image of your choice to display on the button.
|
||||||
|
|
||||||
|
There is no man page or README, but try "buttonmaker --help".
|
||||||
|
|
|
@ -22,12 +22,26 @@
|
||||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# 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)
|
cd $(dirname $0) ; CWD=$(pwd)
|
||||||
|
|
||||||
PRGNAM=buttonmaker
|
PRGNAM=buttonmaker
|
||||||
SRCNAM=ButtonMaker
|
SRCNAM=ButtonMaker
|
||||||
VERSION=${VERSION:-0.1}
|
VERSION=${VERSION:-0.1}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-2}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
PKGTYPE=${PKGTYPE:-tgz}
|
PKGTYPE=${PKGTYPE:-tgz}
|
||||||
|
|
||||||
|
@ -39,9 +53,6 @@ if [ -z "$ARCH" ]; then
|
||||||
esac
|
esac
|
||||||
fi
|
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
|
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||||
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -74,52 +85,41 @@ rm -rf $SRCNAM
|
||||||
tar xvf $CWD/$SRCNAM.tar.gz
|
tar xvf $CWD/$SRCNAM.tar.gz
|
||||||
cd $SRCNAM
|
cd $SRCNAM
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
find -L . \
|
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
|
||||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
|
||||||
-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
|
# don't exit on right click, and interpret the cmd properly on left click.
|
||||||
sed -i '
|
sed -i -e '0,/strcat/ s/strcat/strcpy/' \
|
||||||
/exit(0)/{
|
-e '/exit(0);/d' \
|
||||||
x
|
$PWD/src/main.c
|
||||||
# add a dot to the hold space
|
|
||||||
s/$/./
|
DOCDIR=/usr/doc/$PRGNAM-$VERSION
|
||||||
# #dots==#desired?
|
PKGDOC=$PKG/$DOCDIR
|
||||||
/^.\{2\}$/{
|
|
||||||
# do the replacement action
|
SLKCFLAGS+=" -fcommon"
|
||||||
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
|
|
||||||
|
|
||||||
CFLAGS="$SLKCFLAGS" \
|
CFLAGS="$SLKCFLAGS" \
|
||||||
CXXFLAGS="$SLKCFLAGS" \
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
./autogen.sh
|
./autogen.sh \
|
||||||
./configure \
|
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--build=$ARCH-slackware-linux
|
--build=$ARCH-slackware-linux
|
||||||
|
|
||||||
make
|
make V=1
|
||||||
make install DESTDIR=$PKG
|
make install-strip DESTDIR=$PKG
|
||||||
|
|
||||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
# INSTALL is useless, NEWS AUTHORS README ChangeLog are empty placeholders.
|
||||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
# They all got installed here...
|
||||||
|
|
||||||
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
|
|
||||||
rm -rf $PKG/usr/doc/$PRGNAM
|
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
|
mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
|
|
||||||
|
|
|
@ -6,5 +6,5 @@ MD5SUM="3f09e9417408a90f2ea1b2a49870e7f0"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES="imlib2"
|
REQUIRES="imlib2"
|
||||||
MAINTAINER="Michael Heras"
|
MAINTAINER="B. Watson"
|
||||||
EMAIL="userxbw@gmail.com"
|
EMAIL="yalhcru@gmail.com"
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||||
|
|
||||||
|-----handy-ruler------------------------------------------------------|
|
|-----handy-ruler------------------------------------------------------|
|
||||||
buttonmaker: buttonmaker (dockapps)
|
buttonmaker: buttonmaker (simple launcher dockapp for windowmaker)
|
||||||
buttonmaker:
|
buttonmaker:
|
||||||
buttonmaker: Like other button dockapps, it is a button that runs a command.
|
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.
|
buttonmaker: It has support for png, jpeg, xpm, tiff, etc. thanks to Imlib2.
|
||||||
|
|
Loading…
Reference in New Issue