void-packages/srcpkgs/libjaylink/template

31 lines
931 B
Bash

# Template file for 'libjaylink'
pkgname=libjaylink
version=0.3.0
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=7885e295a567bcacb3f5ec825647d99b2bb0f7e37ccb390019813ff6e249b9b5
pre_configure() {
./autogen.sh
vsed -e '3904s/^+//' -i configure
}
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"
}
}