# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libngf
pkgver=0.28
pkgrel=1
pkgdesc="Nemo's libngf"
url="https://github.com/sailfishos/libngf"
arch="all"
license="LGPL-2.1-or-later"
depends_dev="
	check-dev
	dbus-dev
	dbus-glib-dev
	glib-dev
	"
makedepends="$depends_dev
	autoconf
	automake
	libtool
	"
subpackages="$pkgname-dev"
source="https://github.com/sailfishos/libngf/archive/$pkgver/libngf-$pkgver.tar.gz"
options="!check" # No suitable tests

build() {
	NOCONFIGURE=1 ./autogen.sh
	./configure \
		--prefix=/usr
	make
}

package() {
	DESTDIR="$pkgdir" make install

	# Remove tests
	rm -rf "$pkgdir"/opt
}

sha512sums="
aad5aefb76d991f7f463a4051c9dbfaf3e04698e8c0f84e081bda8cabfd94099e14cb3cf9ebe27b7618a606dcb8cf44eb336b69b4ef52d53263b20db6afc07bb  libngf-0.28.tar.gz
"
