# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfce4-dev-tools
pkgver=4.12.0
pkgrel=0
pkgdesc="Xfce developer tools"
url="https://xfce.org/"
arch="all"
license="GPL-2.0"
depends="automake autoconf make intltool pkgconfig libtool gtk-doc glib-dev"
makedepends=
source="http://archive.xfce.org/src/xfce/xfce4-dev-tools/${pkgver%.*}/xfce4-dev-tools-$pkgver.tar.bz2"

_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$_builddir"
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib \
		--localstatedir=/var \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="559202c4d9650e23696c44aa94cfc5a9  xfce4-dev-tools-4.12.0.tar.bz2"
sha256sums="e2e3a654fe9110df81f8c2483c9cbfa6d656fed15d5e5e717d6ef10bd0f5b5cb  xfce4-dev-tools-4.12.0.tar.bz2"
sha512sums="60f90daaaac3eea355779ee1bb6a0cf24fb9e0ba70971c9c26ea681755de41560cfbca59a28241c2fd818031dc46e95c550424577451ceb7a42b1de0b0ff4a31  xfce4-dev-tools-4.12.0.tar.bz2"
