#Maintainer: Dimitris Tzemos pkgname=wmctrl pkgver=1.07 pkgrel=3dj source=("http://tomas.styblo.name/wmctrl/dist/$pkgname-$pkgver.tar.gz" "wmctrl-show-desktop" "wmctrl-x86_64.patch") url=http://tomas.styblo.name/wmctrl/ docs=("README" "AUTHORS" "COPYING" "NEWS" "ChangeLog" "INSTALL") 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://tomas.styblo.name/wmctrl/" ) build() { cd $SRC/$pkgname-$pkgver #wmctrl is not showing all windows on 64bit. patch -p1 < $SRC/wmctrl-x86_64.patch || return 1 ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ --build=$arch-slackware-linux || return 1 make || return 1 make install-strip DESTDIR=$PKG || return 1 cp $SRC/wmctrl-show-desktop $PKG/usr/bin/wmctrl-show-desktop || return 1 chmod 755 $PKG/usr/bin/wmctrl-show-desktop || return 1 }