# Template file for 'libosmocore'
pkgname=libosmocore
version=0.12.1
revision=1
build_style=gnu-configure
configure_args="--prefix=/usr --exec-prefix=/usr --libdir=/usr/lib --datadir=/usr/share
 --libexecdir=/usr/lib --localstatedir=/var --docdir=/usr/share/doc/libosmocore"
hostmakedepends="autoconf automake libtool git pkg-config python"
makedepends="pcsclite-devel talloc-devel gnutls-devel"
short_desc="Core libs for osmocom"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="GPL-2.0-or-later"
homepage="https://bb.osmocom.org/trac/wiki/libosmocore"
distfiles="https://git.osmocom.org/libosmocore/snapshot/libosmocore-${version}.tar.gz"
checksum=65672f48378cb6546d7ea76d2f86797cfa542a965241edcead1c69e0588a7529

pre_configure() {
	autoreconf -i
}

libosmocore-devel_package() {
	depends="libosmocore>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
	}
}
