#Packager: Vasile Coman <kerd[at]slackware[dot]eu>

#Mandatory
pkgname=kvirc
pkgver=4.0.4
pkgrel=1vc
source=("ftp://ftp.kvirc.de/pub/$pkgname/$pkgver/source/$pkgname-$pkgver.tar.bz2")
sourcetemplate=http://people.salixos.org/kerd/$pkgname/$pkgver/
docs=('authors' 'copying' 'changelog' 'install' 'news' 'readme')
url="http://www.kvirc.net/"
 
slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"KVIrc (QT based IRC client)"
"KVIrc is the K-Visual IRC Client. It's a free portable Internet Relay"
"Chat client based on the excellent Qt GUI toolkit. KVIrc is being" 
"written by Szymon Stefanek and The KVIrc Development Team with the" 
"contribution of many IRC addicted developers around the world.  It"
"has a full GUI based configuration, floatable windows, built-in help"
"browser, addons and themes support transparency support, dran'n'drop"
"toolbar editing,activity notifier as well as proxy support, SSL and"
"IPv6 sockets support." 
"http://www.kvirc.net/"
)

build() {
        cd $startdir/src/$pkgname-$pkgver
	cmake \
    	-DCMAKE_INSTALL_PREFIX=/usr \
    	-DLIB_SUFFIX=${LIBDIRSUFFIX} \
    	-DMANDIR=man \
    	-DMANUAL_REVISION=4744 \

  	make || return 1
  	make install DESTDIR=$startdir/pkg || return 1

	mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps
	mkdir -p $startdir/pkg/usr/share/icons/hicolor/32x32/apps
	cp $startdir/src/$pkgname-$pkgver/data/icons/48x48/kvirc.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps
	cp $startdir/src/$pkgname-$pkgver/data/icons/32x32/kvirc.png $startdir/pkg/usr/share/icons/hicolor/32x32/apps
}