diff options
Diffstat (limited to 'community/stlink/APKBUILD')
-rw-r--r-- | community/stlink/APKBUILD | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/community/stlink/APKBUILD b/community/stlink/APKBUILD index b4bae7cbdd..e8fd51568f 100644 --- a/community/stlink/APKBUILD +++ b/community/stlink/APKBUILD | |||
@@ -1,8 +1,8 @@ | |||
1 | # Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> | 1 | # Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> |
2 | # Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net> | 2 | # Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net> |
3 | pkgname=stlink | 3 | pkgname=stlink |
4 | pkgver=1.6.0 | 4 | pkgver=1.6.1 |
5 | pkgrel=2 | 5 | pkgrel=0 |
6 | pkgdesc="STM32 discovery line linux programmer" | 6 | pkgdesc="STM32 discovery line linux programmer" |
7 | url="https://github.com/texane/stlink" | 7 | url="https://github.com/texane/stlink" |
8 | arch="all" | 8 | arch="all" |
@@ -10,7 +10,9 @@ license="MIT" | |||
10 | makedepends="cmake libusb-dev" | 10 | makedepends="cmake libusb-dev" |
11 | options="!check" # upstream doesn't have automated tests | 11 | options="!check" # upstream doesn't have automated tests |
12 | subpackages="$pkgname-doc $pkgname-dev" | 12 | subpackages="$pkgname-doc $pkgname-dev" |
13 | source="$pkgname-$pkgver.tar.gz::https://github.com/texane/stlink/archive/v$pkgver.tar.gz" | 13 | source="$pkgname-$pkgver.tar.gz::https://github.com/texane/stlink/archive/v$pkgver.tar.gz |
14 | 0001-doc-man-Fix-installation-directory.patch | ||
15 | 0002-CMakeLists.txt-Install-pkgconfig-files-again.patch" | ||
14 | 16 | ||
15 | build() { | 17 | build() { |
16 | if [ "$CBUILD" != "$CHOST" ]; then | 18 | if [ "$CBUILD" != "$CHOST" ]; then |
@@ -20,6 +22,7 @@ build() { | |||
20 | -DCMAKE_BUILD_TYPE=None \ | 22 | -DCMAKE_BUILD_TYPE=None \ |
21 | -DCMAKE_INSTALL_PREFIX=/usr \ | 23 | -DCMAKE_INSTALL_PREFIX=/usr \ |
22 | -DBUILD_SHARED_LIBS=True \ | 24 | -DBUILD_SHARED_LIBS=True \ |
25 | -DSTLINK_LIBRARY_PATH=/usr/lib \ | ||
23 | -DCMAKE_C_FLAGS="$CFLAGS -Wno-error=cpp" \ | 26 | -DCMAKE_C_FLAGS="$CFLAGS -Wno-error=cpp" \ |
24 | $CMAKE_CROSSOPTS . | 27 | $CMAKE_CROSSOPTS . |
25 | make -C build | 28 | make -C build |
@@ -36,4 +39,6 @@ package() { | |||
36 | mv "$pkgdir"/etc/udev/rules.d "$pkgdir"/usr/lib/udev | 39 | mv "$pkgdir"/etc/udev/rules.d "$pkgdir"/usr/lib/udev |
37 | } | 40 | } |
38 | 41 | ||
39 | sha512sums="0bf2416dac69e490560063714d630c4f549568bd9047113fb334f0841f5db23b97876307be8f0b1731863a2438c9502b9916d0d652c516d50969cb8b2cfa1a15 stlink-1.6.0.tar.gz" | 42 | sha512sums="ac7ca0c23cd82a66be3ade4fec2a3fe757e5fc2e1d5c68a81316781a59568261a363efb58f5c529921b1c97185489fca5f1c1c4681098c72fb121b0858916fbc stlink-1.6.1.tar.gz |
43 | 0825e51e46b65ad5c24d18edcd301823f02e8979dd793ada292eae3ac6d61cd32945a5ba8e102bc320991bbcd2cc5015a909f41e4c0a57aeed39aaff8b96d97f 0001-doc-man-Fix-installation-directory.patch | ||
44 | d31ecbbe5458ac0de20ca26277031c375da73ef600eec305b1c199d21560add6448a6b3086f3c60350d001dcc5f2a1113ed723fbc177c6bd1d02bdd868a9bfe0 0002-CMakeLists.txt-Install-pkgconfig-files-again.patch" | ||