#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=rxvt-unicode
pkgver=9.10
pkgrel=1gv
source=("http://dist.schmorp.de/rxvt-unicode/rxvt-unicode-$pkgver.tar.bz2" "rxvt-unicode.desktop" "rxvt-unicode.png")
docs=("readme*" "install" "copying" "changelog" "authors" "news" "todo" "manifest" "changes.txt" "embed" "embed-tk" "podtbl" "pty-fd" "rxvt-tabbed")
url=http://software.schmorp.de/pkg/rxvt-unicode.html

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"rxvt-unicode (a unicode enabled rxvt-clone terminal emulator)"
"rxvt-unicode is a modern, Unicode-aware color xterm replacement that"
"uses significantly less memory than a conventional xterm and many"
"other Unicode supporting terminal emulators. It supports using"
"multiple fonts at the same time, including Xft fonts, and"
"client-server technology to reduce memory consumption when using"
"multiple windows."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	
	./configure --prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--build=$arch-slackware-linux \
		--with-terminfo=/usr/share/terminfo \
		--enable-256-color \
		--enable-font-styles \
		--enable-xim \
		--enable-keepscrolling \
		--enable-selectionscrolling \
		--enable-smart-resize \
		--enable-pixbuf \
		--enable-transparency \
		--enable-utmp \
		--enable-wtmp \
		--enable-lastlog \
		--disable-frills
	make || return 1
	make install DESTDIR=$startdir/pkg
	
	mkdir -p $startdir/pkg/usr/share/applications
	cp $startdir/src/rxvt-unicode.desktop $startdir/pkg/usr/share/applications/
	mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps
	cp $startdir/src/rxvt-unicode.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps/
}