#Maintainer: Dimitris Tzemos pkgname=wmctrl pkgver=1.07 pkgrel=2dj source=("http://sweb.cz/tripie/utils/wmctrl/dist/$pkgname-$pkgver.tar.gz" "wmctrl-x86_64.patch") url=http://sweb.cz/tripie/utils/wmctrl docs=() slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "wmctrl (tool to interact with an X Window Manager)" "The wmctrl program is a command line tool to interact with an" "EWMH/NetWM-compatible X Window Manager. It provides command line" "access to almost all the features defined in the EWMH specification." "" "Homepage: http://sweb.cz/tripie/utils/wmctrl" ) build() { cd $SRC/$pkgname-$pkgver patch -p1 < $SRC/wmctrl-x86_64.patch || return 1 ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc/X11/WindowMaker \ --mandir=/usr/man \ --build=$arch-slackware-linux || return 1 make || return 1 make install-strip DESTDIR=$PKG || return 1 cat << EOF > $PKG/usr/bin/show_desktop.sh #!/bin/sh if wmctrl -m | grep "mode: ON"; then exec wmctrl -k off else exec wmctrl -k on fi EOF chmod 755 $PKG/usr/bin/show_desktop.sh }