[arch-commits] Commit in openocd/trunk (PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Sun Nov 1 21:03:00 UTC 2020


    Date: Sunday, November 1, 2020 @ 21:02:59
  Author: ffy00
Revision: 738996

add dependency on libudev.so (1:0.10.0-4)

https://www.archlinux.org/todo/hidapi-now-optdepends-on-libusb-and-libudev/

Also fix building with GCC 10.

Modified:
  openocd/trunk/PKGBUILD

----------+
 PKGBUILD |   16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-01 21:02:10 UTC (rev 738995)
+++ PKGBUILD	2020-11-01 21:02:59 UTC (rev 738996)
@@ -11,18 +11,24 @@
 
 pkgname=openocd
 pkgver=0.10.0
-pkgrel=3
+pkgrel=4
 epoch=1
 pkgdesc='Debugging, in-system programming and boundary-scan testing for embedded target devices'
 arch=('x86_64')
 url='http://openocd.org'
 license=('GPL')
-depends=('libftdi-compat' 'libusb-compat' 'hidapi')
-source=("https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2")
-sha512sums=('6c890c86c3339da49bd529e8674ca62bc7fce4a2a17798dcc5d70b4f7628b640d856651170a3f7e2e2a120989066e84d8439b56ff42ff2bd72446f9af0f28ba2')
+depends=('libftdi-compat' 'libusb-compat' 'hidapi' 'libudev.so')
+source=("https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2"
+        'fix-gcc-10.patch::http://openocd.zylin.com/gitweb?p=openocd.git;a=patch;h=c60252ac2b636c4d99b766a574b9df0966151696')
+sha512sums=('6c890c86c3339da49bd529e8674ca62bc7fce4a2a17798dcc5d70b4f7628b640d856651170a3f7e2e2a120989066e84d8439b56ff42ff2bd72446f9af0f28ba2'
+            'dbb247f703d79bad9a9e3660dccebfc4b268dd020084e1e0b889a8388c6aba80dae2e1eb03e8f561a842aabb8ed4ea26ed321ced9a6ba50b511f5cd2bf1583e8')
 
 prepare() {
-  sed -i 's|GROUP="plugdev", ||g' $pkgname-$pkgver/contrib/60-openocd.rules
+  cd $pkgname-$pkgver
+
+  patch -p1 -i ../fix-gcc-10.patch
+
+  sed -i 's|GROUP="plugdev", ||g' contrib/60-openocd.rules
 }
 
 build() {



More information about the arch-commits mailing list