2019-01-21 23:25:46 +00:00
|
|
|
pkgname=uuu
|
2019-09-01 05:37:02 +00:00
|
|
|
pkgver=1.3
|
2019-01-21 23:25:46 +00:00
|
|
|
pkgrel=0
|
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"
|
2019-01-21 23:25:46 +00:00
|
|
|
license="BSD"
|
|
|
|
depends="libusb-compat"
|
|
|
|
makedepends="libzip-dev libusb-compat-dev libusb-dev bzip2-dev cmake"
|
2019-09-01 05:37:02 +00:00
|
|
|
_commit="8bb3f0169778e5ae9ed498ba5652d65eccc77cff"
|
|
|
|
source="$pkgname-$_commit.tar.gz::https://source.puri.sm/Librem5/mfgtools/-/archive/${_commit}.tar.gz"
|
2019-01-21 23:25:46 +00:00
|
|
|
options="!check"
|
|
|
|
|
2019-09-01 05:37:02 +00:00
|
|
|
builddir="$srcdir"/mfgtools-"$_commit"
|
2019-01-21 23:25:46 +00:00
|
|
|
build() {
|
|
|
|
cd "$builddir"
|
2019-09-01 05:37:02 +00:00
|
|
|
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .
|
|
|
|
mkdir -p "$builddir"/libuuu/gen
|
|
|
|
echo "#define GIT_VERSION \"lib${pkgver}\"" > "$builddir"/libuuu/gen/gitversion.h.tmp
|
|
|
|
make
|
2019-01-21 23:25:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$builddir"
|
2019-09-01 05:37:02 +00:00
|
|
|
echo "#define GIT_VERSION \"lib${pkgver}\"" > "$builddir"/libuuu/gen/gitversion.h.tmp
|
2019-01-21 23:25:46 +00:00
|
|
|
make PREFIX=/usr DESTDIR="$pkgdir"/ install
|
|
|
|
}
|
|
|
|
|
2019-09-01 05:37:02 +00:00
|
|
|
sha512sums="f3c004d4e712123d3c2ae2e4a08e3dfd64ed9b065edb05aa0e4d7c6a5d9b1b6ea7d5190b6709c522ba7a5a3e9c978aefc3865a2e16c5696b8024a9584e3ab2a5 uuu-8bb3f0169778e5ae9ed498ba5652d65eccc77cff.tar.gz"
|