# Template file for 'xdaliclock'
pkgname=xdaliclock
version=2.43
revision=2
build_wrksrc=X11
build_style=gnu-configure
makedepends="libXext-devel libXt-devel"
short_desc="Melting digital clock"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="MIT/X11"
homepage="http://www.jwz.org/xdaliclock/"
distfiles="http://www.jwz.org/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=6b573a8bac23a72e87a1cd9966c28f1d653bdb0b28bb8fd11633a1a4c2fd9fa4

pre_configure() {
	sed -i -e '/a trivial ANSI C/,+10s/ { (exit 1); exit 1; };//' \
		-e '/INCLUDES=/s/.*/:/' \
		-e '/LDFLAGS=/s/.*/:/' \
		configure
}
do_install() {
	vbin xdaliclock
	vman xdaliclock.man xdaliclock.1
}
