1 # Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
6 pkgdesc='Firmware programmer for STM32 STLINK v1/v2 protocol'
8 url='https://github.com/texane/stlink'
10 # Add support for gtk3-based GUI
12 makedepends=(cmake gtk3)
13 optdepends=('gtk3: GUI application')
14 source=($pkgname-$pkgver.zip::https://github.com/texane/stlink/archive/v$pkgver.zip)
15 sha256sums=('dd2fde56c701b9084f6c60c5d2549673150b596f06cffe1334f498013a97f0e1')
19 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr \
20 -DSTLINK_UDEV_RULES_DIR=/usr/lib/udev/rules.d \
21 -DSTLINK_MODPROBED_DIR=/usr/lib/modprobe.d
28 make DESTDIR="$pkgdir" install
30 install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
31 rm "$pkgdir"/usr/lib/libstlink.a