From 7880ca21daa2f3d2c899684da699d04e2efcb02a Mon Sep 17 00:00:00 2001 From: bra1nwave Date: Wed, 18 Jan 2017 15:50:51 +0100 Subject: [PATCH] New package: stlink-1.2.0 --- srcpkgs/stlink/template | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 srcpkgs/stlink/template diff --git a/srcpkgs/stlink/template b/srcpkgs/stlink/template new file mode 100644 index 0000000000..da013b9f22 --- /dev/null +++ b/srcpkgs/stlink/template @@ -0,0 +1,26 @@ +# Template file for 'stlink' +pkgname=stlink +version=1.2.0 +revision=1 +build_style=gnu-configure +hostmakedepends="automake pkg-config" +makedepends="libusb-devel" +short_desc="STM32 discovery line Linux programmer" +maintainer="bra1nwave " +license="3-clause-BSD" +homepage="https://github.com/texane/stlink" +distfiles="${homepage}/archive/${version}.tar.gz" +checksum=acfdd52e350a61c14910f3c14b9ed232a79febcf35b38479b011d5cd2d4af688 + +pre_configure() { + ./autogen.sh +} + +post_install() { + vinstall 49-stlinkv1.rules 644 usr/lib/udev/rules.d + vinstall 49-stlinkv2-1.rules 644 usr/lib/udev/rules.d + vinstall 49-stlinkv2.rules 644 usr/lib/udev/rules.d + vinstall stlink_v1.modprobe.conf 644 usr/lib/modprobe.d + vlicense LICENSE + vdoc README +}