2020-01-06 10:12:10 +00:00
|
|
|
# Maintainer: Clayton Craft <clayton@craftyguy.net>
|
2019-01-21 23:25:46 +00:00
|
|
|
pkgname=uuu
|
2019-09-01 05:37:02 +00:00
|
|
|
pkgver=1.3
|
2020-06-15 22:03:09 +00:00
|
|
|
pkgrel=2
|
2020-01-06 10:12:10 +00:00
|
|
|
_commit="8bb3f0169778e5ae9ed498ba5652d65eccc77cff"
|
2019-09-01 05:37:02 +00:00
|
|
|
pkgdesc="Purism fork of the Universal Update Utility: Freescale/NXP I.MX Chip image deploy tools"
|
2019-01-21 23:25:46 +00:00
|
|
|
url="https://source.puri.sm/Librem5/mfgtools"
|
2019-02-08 07:20:51 +00:00
|
|
|
arch="x86_64"
|
2020-01-06 10:12:10 +00:00
|
|
|
license="BSD-3-Clause"
|
2019-01-21 23:25:46 +00:00
|
|
|
depends="libusb-compat"
|
2020-01-06 10:12:10 +00:00
|
|
|
makedepends="cmake libzip-dev libusb-dev bzip2-dev"
|
2020-06-15 22:03:09 +00:00
|
|
|
source="https://source.puri.sm/Librem5/mfgtools/-/archive/$_commit/uuu-$_commit.tar.gz
|
2020-01-06 10:12:10 +00:00
|
|
|
ignore-git-version.patch"
|
2019-01-21 23:25:46 +00:00
|
|
|
options="!check"
|
2020-01-06 10:12:10 +00:00
|
|
|
builddir="$srcdir/mfgtools-$_commit"
|
2019-01-21 23:25:46 +00:00
|
|
|
|
|
|
|
build() {
|
2020-06-15 22:03:09 +00:00
|
|
|
cmake -B build \
|
|
|
|
-DCMAKE_BUILD_TYPE=None \
|
2020-01-06 10:12:10 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr
|
|
|
|
|
2020-06-15 22:03:09 +00:00
|
|
|
mkdir -p build/libuuu/gen
|
|
|
|
echo "#define GIT_VERSION \"lib$pkgver\"" > build/libuuu/gen/gitversion.h.tmp
|
2020-01-06 10:12:10 +00:00
|
|
|
|
2020-06-15 22:03:09 +00:00
|
|
|
make -C build
|
2019-01-21 23:25:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-06-15 22:03:09 +00:00
|
|
|
echo "#define GIT_VERSION \"lib$pkgver\"" > build/libuuu/gen/gitversion.h.tmp
|
2020-01-06 10:12:10 +00:00
|
|
|
|
2020-06-15 22:03:09 +00:00
|
|
|
make DESTDIR="$pkgdir" -C build install
|
2019-01-21 23:25:46 +00:00
|
|
|
}
|
|
|
|
|
2020-01-06 10:12:10 +00:00
|
|
|
sha512sums="f3c004d4e712123d3c2ae2e4a08e3dfd64ed9b065edb05aa0e4d7c6a5d9b1b6ea7d5190b6709c522ba7a5a3e9c978aefc3865a2e16c5696b8024a9584e3ab2a5 uuu-8bb3f0169778e5ae9ed498ba5652d65eccc77cff.tar.gz
|
2020-06-15 22:03:09 +00:00
|
|
|
fd9c8c09eab958ba997bd94a6b4e08920f4f587d2d42106e383a5421f063360d9da138cf07f36231147636dbcde3d20f1225f8a01058f654d099418133546b50 ignore-git-version.patch"
|