# Contributor: Uros Kolar <host.uros@gmail.com>
# Maintainer: Cameron Banta <cbanta@gmail.com>
setvar pkgname = 'libee'
setvar pkgver = '0.4.1'
setvar pkgrel = '0'
setvar pkgdesc = ""event Expression Library inspired by CEE""
setvar url = ""http://www.libee.org""
setvar arch = ""all""
setvar license = ""LGPL2.1""
setvar makedepends = ""libestr-dev""
setvar subpackages = ""$pkgname-dev""
setvar source = ""http://www.libee.org/download/files/download/$pkgname-$pkgver.tar.gz""

setvar _builddir = ""$srcdir/$pkgname-$pkgver""
proc prepare {
	cd $_builddir
	update_config_sub || return 1
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
}

proc build {
	cd $_builddir
	#make fails on parallel builds
	make -j1 || return 1
}

proc package {
	cd $_builddir
	make DESTDIR="$pkgdir" install || return 1
	rm -rf "$pkgdir"/usr/lib/libee.la
}

setvar sha512sums = ""810cbca8077c975b045b6761de22642708b3555aa8959c17e6be3f3865612642176762ca4def09274a6291256608f11b5833bfaaa25ba0d66f71d0dee6f594d4  libee-0.4.1.tar.gz""