void-packages/srcpkgs/stlink/template
2021-12-17 16:41:22 +01:00

42 lines
1.3 KiB
Bash

# Template file for 'stlink'
pkgname=stlink
version=1.7.0
revision=1
build_style=cmake
configure_args="-DSTLINK_UDEV_RULES_DIR=/usr/lib/udev/rules.d
-DSTLINK_MODPROBED_DIR=/usr/lib/modprobe.d -DSTLINK_LIBRARY_PATH=/usr/lib"
hostmakedepends="pkg-config"
makedepends="libusb-devel gtk+3-devel"
short_desc="Firmware programmer for STM32 STLINK v1/v2/v3 protocol"
maintainer="bra1nwave <bra1nwave@protonmail.com>"
license="BSD-3-Clause"
homepage="https://github.com/stlink-org/stlink"
changelog="https://raw.githubusercontent.com/stlink-org/stlink/master/CHANGELOG.md"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=57ec1214905aedf59bee7f70ddff02316f64fa9ba5a9b6a3a64952edc5b65855
post_install() {
vlicense LICENSE.md 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"
}
}
stlink-gtk_package() {
short_desc+=" - GTK+3 frontend"
depends="${sourcepkg}>=${version}_${revision} hicolor-icon-theme desktop-file-utils"
pkg_install() {
vmove usr/bin/stlink-gui
vmove usr/share/applications/stlink-gui.desktop
vmove usr/share/icons/hicolor/scalable/apps/stlink-gui.svg
vmove usr/share/stlink/stlink-gui.ui
}
}