summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorNicolas Stalder2020-10-23 15:15:28 +0200
committerNicolas Stalder2020-10-23 15:15:28 +0200
commit9c8350cbca9f596b762d7df3dfa14e969384ee3c (patch)
treecde62be86d1ec70a472dcbd6cfe3d2611c480542 /PKGBUILD
downloadaur-9c8350cbca9f596b762d7df3dfa14e969384ee3c.tar.gz
:bookmark: elftosb-bin 5.1.19-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..402b1fc8d361
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Nicolas Stalder <n+archlinux@stalder.io>
+
+# BUILD INSTRUCTIONS
+#
+# The source for `elftosb` is available behind a login wall.
+# Visit <https://www.nxp.com/webapp/Download?colCode=elftosb_5.1.19&appType=license>,
+# accept the license terms, and place the downloaded ZIP file in the same directory as this PKGBUILD,
+# then try building again.
+
+pkgname=elftosb-bin
+_pkgname=elftosb
+pkgver=5.1.19
+pkgrel=1
+pkgdesc="ELF to Secure Binary Utility for NXP MCUs"
+url="https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/mcuboot-mcu-bootloader-for-nxp-microcontrollers:MCUBOOT"
+# could also support 32-bit with some more work
+arch=(x86_64)
+license=(custom:NXP)
+depends=()
+provides=($_pkgname)
+conflicts=($_pkgname)
+
+download_url="https://www.nxp.com/webapp/Download?colCode=${_pkgname}_${pkgver}&appType=license"
+DLAGENTS=("file::/usr/bin/echo ${BOLD}${RED} Unable to find %u, please download from ${download_url} and read the PKGBUILD ${ALL_OFF}" $DLAGENTS[@])
+source=(file://${_pkgname}_$pkgver.zip)
+sha256sums=("c5becbe8905ce4002c4bd351ecb585125cf8090c1ae043b324432598707a5d2b")
+
+package() {
+ bin=$srcdir/${_pkgname}_$pkgver/bin/linux/amd64
+ install -Dm 755 $bin/elftosb -t $pkgdir/usr/bin
+}