# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=glade3
pkgver=3.8.5
pkgrel=5
pkgdesc="A RAD tool for rapid development of GTK+ user interfaces"
url="https://glade.gnome.org/"
arch="all"
license="LGPL-2.1+ AND GPL-2.0+"
depends=
makedepends="gtk+2.0-dev libxml2-dev paxmark"
install=
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/glade3/${pkgver%.*}/glade3-$pkgver.tar.xz"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--enable-compile-warnings=no \
		--disable-scrollkeeper \
		--disable-gnome
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	paxmark -r "$pkgdir"/usr/bin/glade-3
}

sha512sums="722a33f1a1ec3baa785bf3c6f7f5ec2cbe7cf6fe44c9c26d33728de16f2856cbb1ace0cd38c5b5356081e326666cc82fd00f2b6af53bd06bb832079610042985  glade3-3.8.5.tar.xz"
