pkgname=uuu pkgver=1.2.91 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://github.com/NXPmicro/mfgtools/archive/${pkgname}_${pkgver}.tar.gz" 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="f6b576127e7a6ae0ba1e4f4471bacb8df42dcc9555725570b4a3c37e9339907716eddd184179cfc5b96c5bba744c88f572200a71417ba47ead4b374090dfb74a uuu_1.2.91.tar.gz"