void-packages/srcpkgs/stlink/template
johannes 151a9a2fa6 stlink: update to 1.5.0.
Closes: #12224 [via git-merge-pr]
2018-03-06 19:51:25 -08:00

30 lines
822 B
Bash

# Template file for 'stlink'
pkgname=stlink
version=1.5.0
revision=1
build_style=cmake
configure_args="-DSTLINK_UDEV_RULES_DIR=/usr/lib/udev/rules.d -DSTLINK_MODPROBED_DIR=/usr/lib/modprobe.d"
hostmakedepends="pkg-config"
makedepends="libusb-devel"
short_desc="STM32 discovery line Linux programmer"
maintainer="bra1nwave <brainwave@openmailbox.org>"
license="3-clause-BSD"
homepage="https://github.com/texane/stlink"
distfiles="${homepage}/archive/${version}.tar.gz"
checksum=4f0301edf9e904688ba31cf181653102f367c747e23ad356de1c430d1a654e2e
post_install() {
vlicense LICENSE
vdoc README.md README
}
stlink-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
vmove usr/lib/*.a
vmove usr/lib/pkgconfig
}
}