# Maintainer: Pedram Pourang <tsujan2000@gmail.com>
pkgname=kvantum-qt4
pluginname=kvantum
gitname=Kvantum
pkgver=0.10.6
pkgrel=1
epoch=
pkgdesc="SVG-based Qt4 theme engine"
arch=('x86_64')
url="https://github.com/tsujan/Kvantum"
license=('GPL')
groups=('qt')
depends=('qt4>=4.8.7' 'libx11>=1.6.4' 'libxext>=1.3.3')
makedepends=('unzip')
checkdepends=()
optdepends=()
conflicts=()
provides=('kvantum-qt4')
replaces=()
backup=()
options=()
install=
changelog=
source=("https://github.com/tsujan/Kvantum/archive/master.zip")
noextract=()
md5sums=('SKIP')
validpgpkeys=()

pkgver() {
	echo ${pkgver}+g$(unzip -q -z "${srcdir}/master.zip" | cut -c1-10)
}

build() {
	cd "${srcdir}/${gitname}-master/${gitname}"
	qmake-qt4 $pluginname.pro
	make
}

package() {
	cd "${srcdir}/${gitname}-master/${gitname}"
	make INSTALL_ROOT="$pkgdir/" install
}
