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

CFLAGS="-fcommon"

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"
	}
}
