aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlliver Schinagl <oliver@schinagl.nl>2020-11-02 13:24:00 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-11-17 00:25:48 +0000
commite98b3129780f5bd69d1d5b52f60e099cdce3e4d2 (patch)
tree9da14adb784441a869cdf8a72a67319c76065914
parent0f520e1cfe6380e95e2010b7121c853f94c32b33 (diff)
downloadaports-e98b3129780f5bd69d1d5b52f60e099cdce3e4d2.tar.gz
aports-e98b3129780f5bd69d1d5b52f60e099cdce3e4d2.tar.bz2
aports-e98b3129780f5bd69d1d5b52f60e099cdce3e4d2.tar.xz
testing/nxp-mfgtools: new aport
NXP's mfgtools v3.0 - uuu (universal usb updater) Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
-rw-r--r--testing/nxp-mfgtools/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/nxp-mfgtools/APKBUILD b/testing/nxp-mfgtools/APKBUILD
new file mode 100644
index 0000000000..8e6214d526
--- /dev/null
+++ b/testing/nxp-mfgtools/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: Olliver Schinagl <oliver@schinagl.nl>
+# Maintainer: Olliver Schinagl <oliver@schinagl.nl>
+pkgname="nxp-mfgtools"
+pkgver="1.4.43"
+pkgrel=0
+pkgdesc="Freescale/NXP i.MX Chip image deploy tools"
+url="https://github.com/boundarydevices/imx_usb_loader"
+arch="all"
+license="LGPL-2.1-only"
+options="!check" # No tests available
+subpackages="${pkgname}-uuu:_uuu lib${pkgname}-dev"
+makedepends="cmake libusb-dev bzip2-dev libzip-dev openssl-dev"
+source="https://github.com/NXPmicro/mfgtools/archive/uuu_${pkgver}.tar.gz"
+builddir="${srcdir}/mfgtools-uuu_${pkgver}/"
+
+prepare() {
+ echo "${pkgver}" > "${builddir}/.tarball-version"
+}
+
+build() {
+ cmake -B "${builddir}/build" \
+ -DCMAKE_INSTALL_PREFIX="/usr"
+ cmake --build "${builddir}/build"
+}
+
+package() {
+ depends="${subpackages}"
+
+ DESTDIR="${pkgdir}" cmake --build "${builddir}/build" --target install
+
+ install -D -m 0644 -t "${pkgdir}/usr/lib/" \
+ "${builddir}/build/libuuu/libuuc_s.a"
+
+ install -D -m 0644 -t "${pkgdir}/usr/include/" \
+ "${builddir}/libuuu/libuuu.h"
+}
+
+_uuu() {
+ mkdir -p "${subpkgdir}/usr/bin"
+ mv "${pkgdir}/usr/bin/uuu" "${subpkgdir}/usr/bin/"
+}
+
+sha512sums="c00fb6809e03026b396a5a250dac78c2337377c02d86e9075d39e2f655d0844a633b1008a2f930bcb23ac3821bedf11705bfb46a1f6984382cf4f395a063753e uuu_1.4.43.tar.gz"