summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Stalder2020-10-23 15:15:28 +0200
committerNicolas Stalder2020-10-23 15:15:28 +0200
commit9c8350cbca9f596b762d7df3dfa14e969384ee3c (patch)
treecde62be86d1ec70a472dcbd6cfe3d2611c480542
downloadaur-9c8350cbca9f596b762d7df3dfa14e969384ee3c.tar.gz
:bookmark: elftosb-bin 5.1.19-1
-rw-r--r--.SRCINFO14
-rw-r--r--.gitignore4
-rw-r--r--Makefile18
-rw-r--r--PKGBUILD31
4 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..de502391e23
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = elftosb-bin
+ pkgdesc = ELF to Secure Binary Utility for NXP MCUs
+ pkgver = 5.1.19
+ pkgrel = 1
+ url = https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/mcuboot-mcu-bootloader-for-nxp-microcontrollers:MCUBOOT
+ arch = x86_64
+ license = custom:NXP
+ provides = elftosb
+ conflicts = elftosb
+ source = file://elftosb_5.1.19.zip
+ sha256sums = c5becbe8905ce4002c4bd351ecb585125cf8090c1ae043b324432598707a5d2b
+
+pkgname = elftosb-bin
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..57e7fd90984
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+pkg/
+src/
+*.tar.*
+*.zip
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000000..bd1181c29fb
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+PKG := elftosb-bin
+_PKG := elftosb
+
+build:
+ makepkg -f
+
+install:
+ sudo pacman --noconfirm -U $(PKG)-*.pkg.tar.*
+
+clean:
+ rm -rf pkg src
+ rm -rf $(_PKG)*
+
+update-srcinfo:
+ makepkg --printsrcinfo > .SRCINFO
+
+generate-checksums:
+ makepkg -g -f -p PKGBUILD
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..402b1fc8d36
--- /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
+}