From ff1c1cb18f8c64bf06d120e64e43cd4ed6bfa849 Mon Sep 17 00:00:00 2001 From: bra1nwave Date: Mon, 17 Sep 2018 20:46:22 +0200 Subject: [PATCH] stlink: update to 1.5.1. --- common/shlibs | 2 +- srcpkgs/stlink-gtk | 1 + srcpkgs/stlink/template | 20 +++++++++++++++----- 3 files changed, 17 insertions(+), 6 deletions(-) create mode 120000 srcpkgs/stlink-gtk diff --git a/common/shlibs b/common/shlibs index da06f28461d..83fabf2a94e 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2749,7 +2749,7 @@ libgspell-1.so.2 gspell-1.8.0_1 libotf.so.1 libotf-0.9.16_1 libimagequant.so.0 libimagequant-2.8.2_1 libDOtherSide.so.0 dotherside-0.5.2_1 -libstlink-shared.so.1 stlink-1.3.0_1 +libstlink.so.1 stlink-1.5.1_1 libopencsg.so.1 opencsg-1.4.2_1 libCGAL.so.13 cgal-4.10_1 libCGAL_Core.so.13 cgal-4.10_1 diff --git a/srcpkgs/stlink-gtk b/srcpkgs/stlink-gtk new file mode 120000 index 00000000000..0a1392a4b85 --- /dev/null +++ b/srcpkgs/stlink-gtk @@ -0,0 +1 @@ +stlink \ No newline at end of file diff --git a/srcpkgs/stlink/template b/srcpkgs/stlink/template index 5829c149a47..4ac74ed82d1 100644 --- a/srcpkgs/stlink/template +++ b/srcpkgs/stlink/template @@ -1,17 +1,17 @@ # Template file for 'stlink' pkgname=stlink -version=1.5.0 +version=1.5.1 revision=1 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" +makedepends="libusb-devel gtk+3-devel" short_desc="STM32 discovery line Linux programmer" maintainer="bra1nwave " -license="3-clause-BSD" +license="BSD-3-Clause" homepage="https://github.com/texane/stlink" -distfiles="${homepage}/archive/${version}.tar.gz" -checksum=4f0301edf9e904688ba31cf181653102f367c747e23ad356de1c430d1a654e2e +distfiles="${homepage}/archive/v${version}.tar.gz" +checksum=e0145fbfd3e781f21baf12a0750b0933c445ee6338e36142836bf5a2c267e107 post_install() { vlicense LICENSE @@ -28,3 +28,13 @@ stlink-devel_package() { 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 + } +}