void-packages/srcpkgs/stlink/template
bra1nwave 6d35cb89ee stlink: update to 1.4.0.
Closes: #6944 [via git-merge-pr]
2017-07-03 22:29:09 -07:00

30 lines
822 B
Bash

# Template file for 'stlink'
pkgname=stlink
version=1.4.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=d99b8385cce8071d5e58de21b6c8866058af20a8dd46ecf01e1c1dc3aa038cc9
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
}
}