archrelease: copy trunk to community-any
[ArchLinux/community.git] / stlink / trunk / PKGBUILD
blob14d5f115eeaf940672e8167804f17d7cefc66fea
1 # Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
3 pkgname=stlink
4 pkgver=1.7.0
5 pkgrel=1
6 pkgdesc='Firmware programmer for STM32 STLINK v1/v2 protocol'
7 arch=(x86_64)
8 url='https://github.com/texane/stlink'
9 license=(BSD)
10 # Add support for gtk3-based GUI
11 depends=(libusb)
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')
17 build() {
18   cd stlink-$pkgver
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
22   make
25 package() {
26   cd stlink-$pkgver
28   make DESTDIR="$pkgdir" install
30   install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
31   rm "$pkgdir"/usr/lib/libstlink.a