# Contributor: Duncan Guthrie <dguthrie@posteo.net>
# Maintainer: Duncan Guthrie <dguthrie@posteo.net>
pkgname=matchbox-common
pkgver=0_git20070606
pkgrel=2
_commit=3055fb158054d059e9a50141e7ded2a41ecfbd47 
pkgdesc="Common data files for Matchbox"
url="http://matchbox-project.org"
arch="noarch"
license="GPL-2.0-only"
depends=""
makedepends="libmatchbox-dev autoconf automake libtool"
source="https://git.yoctoproject.org/cgit/cgit.cgi/$pkgname/snapshot/$pkgname-$_commit.tar.gz
	matchbox-v2-utils.patch"
builddir="$srcdir/$pkgname-$_commit"
options="!check"

build() {
	cd "$builddir"
	autoreconf --install
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

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

sha512sums="742c38c60efa99de6a7d9bf510045eaf8ea1038722c9e45d614b66a3112f2b48f715d53bf9d44f173ca35e858aee135d0fbc3ed4fe0937b74c40ac515c5320f4  matchbox-common-3055fb158054d059e9a50141e7ded2a41ecfbd47.tar.gz
d2e01db56b2f230ca36773e96678359e528570fc0a3f78124ab1088cdf94a495d67173dec539400f7529382bc405ac9de93e266a905c022099396d1865fe1775  matchbox-v2-utils.patch"
