# Template file for 'xcruiser'
pkgname=xcruiser
version=0.30
revision=1
build_style=gnu-makefile
makedepends="libXaw-devel"
short_desc="Filesystem visualization utility"
maintainer="beefcurtains <beefcurtains@voidlinux.eu>"
license="GPL-2"
homepage="http://${pkgname}.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
checksum=917b68dc06389bfcdde742f0798f61cdeaea2ae3c6567960c33f7634d4861ce5
LDFLAGS="-lXaw -lXmu -lXt -lX11 -lm"

pre_build() {
	local sources
	sources=(*.c)
	echo "${pkgname}: ${sources[@]/%c/o}" >Makefile
}

do_install() {
	vbin ${pkgname}
	vinstall XCruiser.ad 644 /usr/share/X11/app-defaults XCruiser
	mv ${pkgname}.{man,1}
	vman ${pkgname}.1
}
