#Maintainer: Markus Muttilainen <stillborn~dotˇzenwalk~at~gmail~dot~com>

pkgname=root-tail
pkgver=1.2
pkgrel=2mm
arch=i486
source=(http://oldhome.schmorp.de/marc/data/root-tail-1.2.tar.gz README.slackware)
#sourcetemplate=http://users.zenwalk.org/user-accounts/pnboy/$pkgname/$pkgver/
docs=("readme" "README.slackware")
url=http://oldhome.schmorp.de/marc/root-tail.html
#dotnew=()
#CFLAGS=
#CXXFLAGS=
#options=('noextract')

#doinst() {
#
#}

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"root-tail - print text directly to X11 root window"
"Displays a given file anywhere on your X11 root window," 
"i.e. it is kind of tail -f for multiple files using your desktop"
"background as output window."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
        xmkmf -a 
        sed -i "s/-O2/$CFLAGS/" Makefile
	make|| return 1
	make install DESTDIR=$startdir/pkg
        make install.man DESTDIR=$startdir/pkg 
}