# Template file for 'libjaylink'
pkgname=libjaylink
version=0.3.1
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config"
makedepends="libusb-devel"
short_desc="Library to access SEGGER J-Link and compatible devices"
maintainer="classabbyamp <void@placeviolette.net>"
license="GPL-2.0-or-later"
homepage="https://gitlab.zapb.de/libjaylink/libjaylink"
changelog="https://gitlab.zapb.de/libjaylink/libjaylink/-/raw/master/NEWS"
distfiles="https://gitlab.zapb.de/libjaylink/libjaylink/-/archive/${version}/libjaylink-${version}.tar.gz"
checksum=a2d98c1aa13dcf41c6c681767a43cdefc42b6f71af9362937555051007514cd9

pre_configure() {
	./autogen.sh
}

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