# Template file for 'skypetab-ng'
pkgname=skypetab-ng
version="$(date -u +%Y%m%d)"
short_desc="A program that adds tabs to Skype for Linux"
maintainer="davehome <davehome@redthumb.info.tm>"
homepage="http://keks-n.net/skypetab"
license="GPL"
long_desc="
 Skype TAB NG(next generation) helps you to add awesome tabs for skype in
 Linux. This tool will seperate the skype in two sections:
 
 The left section contains all the skype contact list as well as other skype
 functions whereas the right has displays the current conversation
 information. More than one converstaion will be organised in tabs."

only_for_archs=i686
nofetch=yes
noextract=yes

Add_dependency run skype

Add_dependency build pkg-config
Add_dependency build qt-devel
Add_dependency build libX11-devel
Add_dependency build git

do_fetch() {
	local url="git://github.com/kekekeks/${pkgname}.git"
	msg_normal " Fetching source from $url ...\n"
	git clone ${url} ${pkgname}-${version}
}

do_configure()
{
	qmake -spec linux-g++-32
}

do_build()
{
	make ${makejobs}
}

do_install()
{
	make ${makejobs} INSTALL_ROOT=${DESTDIR} install
	chmod +x "${DESTDIR}/usr/share/applications/${pkgname}.desktop"
}