void-packages/srcpkgs/stlink/template

43 lines
1.3 KiB
Bash

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