2017-01-18 14:50:51 +00:00
|
|
|
# Template file for 'stlink'
|
|
|
|
pkgname=stlink
|
2017-02-26 10:01:03 +00:00
|
|
|
version=1.3.1
|
2017-01-18 14:50:51 +00:00
|
|
|
revision=1
|
2017-01-29 15:16:06 +00:00
|
|
|
build_style=cmake
|
|
|
|
configure_args="-DSTLINK_UDEV_RULES_DIR=/usr/lib/udev/rules.d -DSTLINK_MODPROBED_DIR=/usr/lib/modprobe.d"
|
|
|
|
hostmakedepends="pkg-config"
|
2017-01-18 14:50:51 +00:00
|
|
|
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"
|
2017-02-26 10:01:03 +00:00
|
|
|
checksum=5d346b884b5cf1f7f9bb7fd7ee049b3b2e880785c7a15774d0b1a6574823e63b
|
2017-01-18 14:50:51 +00:00
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE
|
2017-01-29 15:16:06 +00:00
|
|
|
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
|
|
|
|
}
|
2017-01-18 14:50:51 +00:00
|
|
|
}
|