Created
January 13, 2021 23:06
-
-
Save nickray/e7e08178b5afe9722eb2683e6e969524 to your computer and use it in GitHub Desktop.
Patch to build jlink-software-and-documentation for ARM64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- jlink-software-and-documentation/PKGBUILD 2021-01-09 10:48:38.000000000 +0000 | |
+++ jlink-software-and-documentation.patched/PKGBUILD 2021-01-13 23:05:09.480407369 +0000 | |
@@ -6,13 +6,14 @@ | |
pkgrel=1 | |
epoch=33 | |
pkgdesc="Segger JLink software & documentation pack for Linux" | |
-arch=('i686' 'x86_64' 'armv7h') | |
+arch=('i686' 'x86_64' 'armv7h' 'aarch64') | |
license=('custom') | |
groups=('jlink') | |
depends=('glibc' 'libudev0-shim' 'patch') | |
source_x86_64=("JLink_Linux_${pkgver/./}_x86_64.tgz::https://www.segger.com/downloads/jlink/JLink_Linux_V${pkgver/./}_x86_64.tgz") | |
source_i686=("JLink_Linux_${pkgver/./}_i686.tgz::https://www.segger.com/downloads/jlink/JLink_Linux_V${pkgver/./}_i386.tgz") | |
source_armv7h=("JLink_Linux_${pkgver/./}_arm.tgz::https://www.segger.com/downloads/jlink/JLink_Linux_V${pkgver/./}_arm.tgz") | |
+source_aarch64=("JLink_Linux_${pkgver/./}_arm64.tgz::https://www.segger.com/downloads/jlink/JLink_Linux_V${pkgver/./}_arm64.tgz") | |
source=("99-jlink.rules.patch" "JLink.svg") | |
desktops=( | |
"JFlashExe.desktop" | |
@@ -39,6 +40,7 @@ | |
md5sums_i686=('081c33ffeabb0a8588da4e101cfa0b0d') | |
md5sums_x86_64=('9deac082b4e0fc4bdf32e0cf267158ed') | |
md5sums_armv7h=('4232249a15c70814de1533b5ca06f9cf') | |
+md5sums_aarch64=('ef4b946c265a9f1035ac72b0fcbdf4c3') | |
md5sums=("a57d93b791581c1f36e4c672303bb85d" | |
"83a136d31b296dd8f0e23bc21f9d8e19" | |
"02e067cd1c420f2085216d76e4866cd4" | |
@@ -72,10 +74,15 @@ | |
# Change src path name | |
if [ ${CARCH} = "i686" ]; then | |
mv JLink_Linux_V${pkgver/./}_i386 JLink | |
- else if [ ${CARCH} = "x86_64" ]; then | |
- mv JLink_Linux_V${pkgver/./}_x86_64 JLink | |
- else mv JLink_Linux_V${pkgver/./}_arm JLink | |
- fi | |
+ fi | |
+ if [ ${CARCH} = "x86_64" ]; then | |
+ mv JLink_Linux_V${pkgver/./}_x86_64 JLink | |
+ fi | |
+ if [ ${CARCH} = "armv7h" ]; then | |
+ mv JLink_Linux_V${pkgver/./}_arm JLink | |
+ fi | |
+ if [ ${CARCH} = "aarch64" ]; then | |
+ mv JLink_Linux_V${pkgver/./}_arm64 JLink | |
fi | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment