summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD19
1 files changed, 11 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 402b1fc8d36..49103870dc3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,14 +3,18 @@
# 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.
+#
+# By default, `nxp-dlagent` is used to fetch, you can avoid the prompts
+# by setting `NXP_USERNAME` and `NXP_PASSWORD` for your account.
+#
+# Alternatively, 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.
pkgname=elftosb-bin
_pkgname=elftosb
pkgver=5.1.19
-pkgrel=1
+pkgname_pkgver=${_pkgname}_$pkgver
+pkgrel=2
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
@@ -20,12 +24,11 @@ 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)
+DLAGENTS=("nxp::/usr/bin/nxp-dl %u")
+source=("elftosb_5.1.19.zip"::"nxp://elftosb_5.1.19")
sha256sums=("c5becbe8905ce4002c4bd351ecb585125cf8090c1ae043b324432598707a5d2b")
package() {
- bin=$srcdir/${_pkgname}_$pkgver/bin/linux/amd64
+ bin=$srcdir/$pkgname_pkgver/bin/linux/amd64
install -Dm 755 $bin/elftosb -t $pkgdir/usr/bin
}