# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libgnome
pkgver=2.32.1
pkgrel=7
pkgdesc="GNOME base library"
url="https://www.gnome.org/"
arch="all"
license="LGPL"
depends=
depends_dev="gtk+3.0-dev gconf-dev libcanberra-dev gnome-vfs-dev libbonobo-dev"
makedepends="$depends_dev"
install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-upgrade"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://ftp.acc.umu.se/pub/gnome/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2
	glib-2.36.patch
	0001-gnome-config.h-Fix-invalid-UTF-8-in-header.patch
	"

builddir="${srcdir}/${pkgname}-${pkgver}"
prepare() {
	update_config_sub
	default_prepare
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc
	make
}

package() {
	cd "$builddir"
	export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
	make DESTDIR="$pkgdir" install
}

sha512sums="f94e603255a93e73249e0fd9ed5604d732b44ad46f3cc3065afb46fc6162f6cf29304f49440b5c06303b8e68608b6fd16236076813febb5f1cbdcde4bfc3b3e3  libgnome-2.32.1.tar.bz2
1c7ed4c8012584c980f80ce12ee2e8ab1340432766b35b3139844927e183ef33d09a02eb7ec10bb8c7312950d2c1d0d1bdeef92512cded2278223470b2936087  glib-2.36.patch
c327834d533bc8d816685a3b89ba5924d1d3e04be0fa1a38f6f3a3bc0de86f06062a8cde80cee3c91eee2803a61a531991c900829592adfddb6a2611b925d5c4  0001-gnome-config.h-Fix-invalid-UTF-8-in-header.patch"
