void-packages/srcpkgs/stlink/template

41 lines
1.1 KiB
Bash

# Template file for 'stlink'
pkgname=stlink
version=1.5.1
revision=2
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 gtk+3-devel"
short_desc="STM32 discovery line Linux programmer"
maintainer="bra1nwave <brainwave@openmailbox.org>"
license="BSD-3-Clause"
homepage="https://github.com/texane/stlink"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=e0145fbfd3e781f21baf12a0750b0933c445ee6338e36142836bf5a2c267e107
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
}
}
stlink-gtk_package() {
short_desc+=" - GTK+3 frontend"
depends="${sourcepkg}>=${version}_${revision} hicolor-icon-theme desktop-file-utils"
pkg_install() {
vmove usr/share/applications/stlink-gui.desktop
vmove usr/share/icons/hicolor/scalable/apps/stlink-gui.svg
vmove usr/bin/stlink-gui
}
}