void-packages/srcpkgs/libjaylink/template

29 lines
897 B
Bash

# Template file for 'libjaylink'
pkgname=libjaylink
version=0.4.0
revision=1
build_style=meson
hostmakedepends="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=5557d623934a4bbc053c11f9a181375d7abeb76af910696d9e3d9b1de3bf6987
post_install() {
vinstall contrib/60-libjaylink.rules 644 usr/lib/udev/rules.d
}
libjaylink-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}