pmaports/main/uuu/APKBUILD
Oliver Smith 8e00db7fef
main/uuu: only build for x86_64
Fails to build for armhf with the error below, and doesn't seem to be
tested on anything but x86_64 anyway according to the project's
README.md file. I did not report this upstream, because we are using
the version from Purism's repository that is at 1.2.31. Upstream is
already at 1.2.68, which may have fixed this already. So if somebody
needs to have it working for anything other than x86_64, we should try
the upstream version first.

[ 83%] Creating preprocessed clst file /home/pmos/build/src/mfgtools-uuu_1.2.31/uuu/gen/emmc_burn_all.clst
gen_txt_include.sh: applet not found
make[2]: *** [uuu/CMakeFiles/uuu.dir/build.make:63: uuu/gen/uuu.clst] Error 127
make[2]: *** Waiting for unfinished jobs....
gen_txt_include.sh: applet not found
make[2]: *** [uuu/CMakeFiles/uuu.dir/build.make:68: uuu/gen/emmc_burn_loader.clst] Error 127
gen_txt_include.sh: applet not found
gen_txt_include.shmake[2]: *** [uuu/CMakeFiles/uuu.dir/build.make:73: uuu/gen/emmc_burn_all.clst] Error 127
: applet not found
make[2]: *** [uuu/CMakeFiles/uuu.dir/build.make:93: uuu/gen/sd_burn_all.clst] Error 127
make[1]: *** [CMakeFiles/Makefile2:184: uuu/CMakeFiles/uuu.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 83%] Built target uuc
make: *** [Makefile:130: all] Error 2
2019-02-08 08:28:18 +01:00

28 lines
973 B
Text

pkgname=uuu
pkgver=1.2.31
pkgrel=0
pkgdesc="Universal Update Utility: Freescale/NXP I.MX Chip image deploy tools"
url="https://source.puri.sm/Librem5/mfgtools"
arch="x86_64"
license="BSD"
depends="libusb-compat"
makedepends="libzip-dev libusb-compat-dev libusb-dev bzip2-dev cmake"
source="https://source.puri.sm/Librem5/mfgtools/-/archive/${pkgname}_${pkgver}/mfgtools-${pkgname}_${pkgver}.tar.bz2"
options="!check"
builddir="$srcdir"/mfgtools-"$pkgname"_"$pkgver"
build() {
cd "$builddir"
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .
mkdir -p "$builddir"/libuuu/gen
echo "#define GIT_VERSION \"libuuu_${pkgver}\"" > "$builddir"/libuuu/gen/gitversion.h
make
DESTDIR="${pkgdir}" make install
}
package() {
cd "$builddir"
make PREFIX=/usr DESTDIR="$pkgdir"/ install
}
sha512sums="c23cb6fd5007710974cf89eadeb613f81f64e478063c64117c8105870f78c099e399a11877378013657ed4b21e1a4f682822adff9e676da71f7b7625d3ada88f mfgtools-uuu_1.2.31.tar.bz2"