# Contributor: Fabio Riga <rifabio@dpersonam.me>
# Maintainer:
setvar pkgname = 'klavaro'
setvar pkgver = '3.01'
setvar pkgrel = '0'
setvar pkgdesc = ""Free touch typing tutor program""
setvar url = ""http://klavaro.sourceforge.net/""
setvar arch = ""all""
setvar license = ""GPL2""
setvar depends = ""curl gtk+3.0 hicolor-icon-theme""
setvar depends_dev = """"
setvar makedepends = ""intltool gtk+3.0-dev curl-dev""
setvar install = ""$pkgname.post-install""
setvar subpackages = ""$pkgname-lang $pkgname-doc""
setvar source = ""http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2 configure.patch""

setvar _builddir = ""$srcdir"/$pkgname-$pkgver"
proc prepare {
	local i
	cd $_builddir
	for i in $source {
		case (i) {
		*.patch { msg $i; patch -p1 -i "$srcdir"/$i || return 1}
		}
	}
}

proc build {
	cd $_builddir
        ./configure --prefix=/usr
        make
}

proc package {
	cd $_builddir
        make DESTDIR="$pkgdir" install
        # remove the gtkdatabox shared library
        # klavaro links to it statically due to some incompatibility with GTK3
        rm -r "$pkgdir/usr/lib"
}

setvar md5sums = ""53e2824ccc89f70dd7dca4d52ccf9c0e  klavaro-3.01.tar.bz2
a86abf4ec807a463aff04013c5d11203  configure.patch""
setvar sha256sums = ""ed71d522c29113d5d6517a65cbf95dafbe85ca4bb978139b804b98f128015e85  klavaro-3.01.tar.bz2
82b75b852f8ca40c5feeba25f16343e66552790373b45f7970d2c0b45bae48da  configure.patch""
setvar sha512sums = ""5d58269867d2b39309e07ca9dd6c525d67acaca93dea0010332e39e8f3dd444070dbc75abad00ac4ca3fd4155f41cf871cb8ccee3dc332aa31f85c8b17d7c48b  klavaro-3.01.tar.bz2
19bd10345e912dc5ba0ed95bcb554289d83f0252076322a011932bbd678c9298237828a0e5fb2e508c4aa430229444ccf5a26fb766c7cef8e8c98b02ce5e2a2b  configure.patch""