# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libdsme
pkgver=0.67.0
pkgrel=0
pkgdesc="Libraries for programs that communicate with the Device State Management Entity"
arch="all"
url="https://github.com/sailfishos/libdsme"
license="LGPL-2.1-or-later"
depends_dev="
	check-dev
	glib-dev
	"
makedepends="$depends_dev"
subpackages="$pkgname-dev"
source="https://github.com/sailfishos/libdsme//archive/$pkgver/libdsme-$pkgver.tar.gz"
options="!check" # No suitable tests

build() {
	make
}

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

	# Create missing symlinks
	ldconfig "$pkgdir"/usr/lib

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

sha512sums="
f88f3f80905bb3674eb130a8cef09c16f20071416656a8c083ff7bf7561cf1e27f0915f57a782fea59de3aadcb1b431886d0f715463317fa6745a8b29f12d89a  libdsme-0.67.0.tar.gz
"
