Date: Monday, January 30, 2017 @ 22:49:54 Author: anatolik Revision: 209579
upgpkg: stlink 1.3.0-1 Modified: stlink/trunk/PKGBUILD ----------+ PKGBUILD | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-01-30 22:37:32 UTC (rev 209578) +++ PKGBUILD 2017-01-30 22:49:54 UTC (rev 209579) @@ -2,21 +2,24 @@ # Maintainer: Anatol Pomozov <anatol.pomo...@gmail.com> pkgname=stlink -pkgver=1.2.0 -pkgrel=2 +pkgver=1.3.0 +pkgrel=1 pkgdesc='Firmware programmer for STM32 STLINK v1/v2 protocol' arch=(i686 x86_64) url='https://github.com/texane/stlink' license=(BSD) +# Add support for gtk3-based GUI depends=(libusb) +makedepends=(cmake) install=stlink.install source=($pkgname-$pkgver.zip::https://github.com/texane/stlink/archive/$pkgver.zip) -sha256sums=('9cb76f19e5a27b94ee0a45ac883fa0afdcbae57361b43189dd1f2f5a36695485') +sha256sums=('b96a41fcdcf82d196d31953ae653c211650059c9a15f3d5bd7682a7b573241ab') build() { cd stlink-$pkgver - ./autogen.sh - ./configure --prefix=/usr + cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr \ + -DSTLINK_UDEV_RULES_DIR=/usr/lib/udev/rules.d \ + -DSTLINK_MODPROBED_DIR=/usr/lib/modprobe.d make } @@ -25,10 +28,6 @@ make DESTDIR="$pkgdir" install - install -Dm644 stlink_v1.modprobe.conf "$pkgdir"/usr/lib/modprobe.d/stlink_v1.modprobe.conf - install -Dm644 49-stlinkv1.rules "$pkgdir"/usr/lib/udev/rules.d/49-stlinkv1.rules - install -Dm644 49-stlinkv2.rules "$pkgdir"/usr/lib/udev/rules.d/49-stlinkv2.rules - install -Dm644 49-stlinkv2-1.rules "$pkgdir"/usr/lib/udev/rules.d/49-stlinkv2-1.rules - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE - install -Dm644 README "$pkgdir"/usr/share/doc/$pkgname/README + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + rm "$pkgdir"/usr/lib/libstlink.a }