pkgname=libhildon
pkgver=2.2.25
pkgrel=2
pkgdesc="Hildon libraries"
arch="all"
url="https://github.com/maemo-leste/hildon"
license="GPL"
depends="gtk+2.0-maemo gconf libcanberra maemo-l10n pango"
depends_dev="gtk+2.0-maemo-dev libcanberra-dev gconf-dev"
makedepends="autoconf automake libtool gtk-doc $depends_dev"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/maemo-leste/hildon/archive/$pkgver.tar.gz
	hildon-non-glibc.patch"

builddir="$srcdir/hildon-$pkgver"

build() {
	cd "$builddir"
	./autogen.sh --prefix=/usr
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir/" install
	# Prevent conflict with maemo-l10n
	rm -rf "$pkgdir/usr/share/locale"
}
sha512sums="e0b73d19c0406d19a2c6ad10a19e062310213dae2ecbbdf5831c063926d4b3e5998827b43599000185a9705629680afe4dcd40720029e14decd0813633f2acf1  libhildon-2.2.25.tar.gz
5cc6578d513794276ed46292de9ecb72400477ffafa560ebbef2028c214e1a7c8e371f5179941cbfcb1865d2fc2db71e4f50f81e95a5173f247ec4412e312d12  hildon-non-glibc.patch"
