# Template file for 'WindowMaker'
pkgname=WindowMaker
version=0.95.4
revision=3
build_style=gnu-configure
configure_args="--enable-xinerama --with-nlsdir=/usr/share/locale
 --with-gnustepdir=/usr/lib/GNUstep --enable-usermenu --enable-modelock
 --enable-xrandr --disable-static"
makedepends="pkg-config libXinerama-devel libXrandr-devel
 libXmu-devel libpng-devel>=1.6 libXpm-devel libXft-devel tiff-devel
 giflib-devel fontconfig-devel"
conf_files="
	/etc/WindowMaker
	/etc/WindowMaker/WindowMaker
	/etc/WindowMaker/WMRootMenu
	/etc/WindowMaker/WMWindowAttributes
	/etc/WindowMaker/WMState
	/etc/WindowMaker/WMGLOBA"
short_desc="An X11 window manager with a NEXTSTEP look and feel"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-3"
homepage="http://www.windowmaker.org/"
distfiles="http://windowmaker.org/pub/source/release/${pkgname}-${version}.tar.gz"
checksum=2bea97f00570f05ff115d147457c16abefe496a4fc882a027152ce592d768e45

post_install() {
	vinstall COPYING.WTFPL 644 usr/share/licenses/${pkgname}
	vinstall ${FILESDIR}/wmaker.desktop 644 usr/share/xsessions
}

WindowMaker-devel_package() {
	depends="${sourcepkg}>=${version}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
	}
}