# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
# Maintainer:

pkgname=menu-cache
pkgver=0.5.1
pkgrel=2
pkgdesc="Caching mechanism for freedesktop.org compliant menus"
arch="all"
license="GPL-2.0+"
url="https://lxde.org/"
makedepends="glib-dev"
options="!check libtool"  # No test suite.
source="https://downloads.sourceforge.net/lxde/$pkgname-$pkgver.tar.gz"
subpackages="$pkgname-dev"

prepare() {
	cd "$builddir"
	update_config_guess
	default_prepare
}

build() {
	cd "$builddir"
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib/menu-cache \
		--disable-static
	make
}

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

sha512sums="44d55a01f5452804e77518c4a2ba400a5b65edbf4061e346a6c02356195867eaa0bb9eaa057fbf603ddf79759acb16632bf3b7ae543eebc1544e28517cd23066  menu-cache-0.5.1.tar.gz"
