summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD19
-rw-r--r--udev_fix.patch11
3 files changed, 28 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d9b6b3d1291..ff96fb012d8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,14 @@
pkgbase = jlink
- pkgdesc = Embedded debugger and flashing software from Segger
- pkgver = 5.02e
+ pkgdesc = ARM Embedded debugger and flashing software from Segger
+ pkgver = 5.02g
pkgrel = 1
url = https://www.segger.com/jlink-software.html
arch = i686
arch = x86_64
license = custom
depends = glibc
+ source = udev_fix.patch
+ md5sums = 8134047402c9ac6dc7c3bc24dfcf51b5
pkgname = jlink
diff --git a/PKGBUILD b/PKGBUILD
index 6a4faad29d5..e5f3850a9a2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,17 +1,18 @@
# Maintainer: pzl <alsoelp@gmail.com>
pkgname=jlink
-_pkgver="502e"
-pkgver="5.02e"
+_pkgver="502g"
+pkgver="5.02g"
pkgrel=1
pkgdesc="ARM Embedded debugger and flashing software from Segger"
arch=('i686' 'x86_64')
url="https://www.segger.com/jlink-software.html"
license=('custom') #https://www.segger.com/cms/admin/uploads/userfiles/file/J-Link/license_agreement.txt
depends=('glibc')
-source=() #fetching the source requires a POST request, so we must do this in prepare()
-_md5sums_64=("41ec4f497192c3c5f6fe267a5adf0dbd") #underscored because real md5sums must match source array, ours is empty
-_md5sums_32=("bccfa536cebee49ffd10450b0c9b1ced")
+source=('udev_fix.patch') #fetching the pkg source requires a POST request, so we must do this in prepare()
+md5sums=('8134047402c9ac6dc7c3bc24dfcf51b5')
+_md5sums_64=("be4f8cd333a7b5dcd5bd7a6f8931524a") #underscored because real md5sums must match source array length, ours is missing package URL
+_md5sums_32=("1d443d9e1c5cf8b914bc41ef7664aed3")
prepare() {
@@ -37,10 +38,16 @@ prepare() {
tar -xzvf "${pkgname}.tgz"
}
+build() {
+ #remove `BUS!="usb"` from udev rules. BUS isn't valid anymore
+ cd "${srcdir}"/JLink_Linux_V*
+ patch -uN 99-jlink.rules ../udev_fix.patch
+}
+
package() {
cd "${srcdir}"/JLink_Linux_V*
#documentation and licenses
- install -d "${pkgdir}/usr/share/doc/${pkgname}" "${pkgdir}/usr/lib" "${pkgdir}/usr/bin"
+ install -d "${pkgdir}/usr/share/doc/${pkgname}" "${pkgdir}/usr/lib" "${pkgdir}/usr/bin" "${pkgdir}/etc/udev/rules.d"
install -Dm644 Doc/License.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 Doc/*_JLink.pdf "${pkgdir}/usr/share/doc/${pkgname}/"
cp -r Samples/JLink/* "${pkgdir}/usr/share/doc/${pkgname}/"
diff --git a/udev_fix.patch b/udev_fix.patch
new file mode 100644
index 00000000000..528585c90cf
--- /dev/null
+++ b/udev_fix.patch
@@ -0,0 +1,11 @@
+--- 99-jlink.rules 2015-10-26 14:00:18.000000000 -0400
++++ 99-jlink.rules 2015-10-27 12:30:01.558625648 -0400
+@@ -6,7 +6,7 @@
+ # Matches are AND combined, meaning: a==b,c==d,do stuff
+ # results in: if (a == b) && (c == d) -> do stuff
+ #
+-BUS!="usb", ACTION!="add", SUBSYSTEM!=="usb_device", GOTO="jlink_rules_end"
++ACTION!="add", SUBSYSTEM!=="usb_device", GOTO="jlink_rules_end"
+ #
+ # Give all users read and write access.
+ # Note: NOT all combinations are supported by J-Link right now. Some are reserved for future use, but already added here