Package Details: mfgtools 1.5.21-2

Git Clone URL: https://aur.archlinux.org/mfgtools.git (read-only, click to copy)
Package Base: mfgtools
Description: Freescale/NXP I.MX Chip image deploy tools
Upstream URL: https://github.com/NXPmicro/mfgtools
Licenses: BSD
Submitter: Theowhy
Maintainer: Theowhy
Last Packager: Theowhy
Votes: 4
Popularity: 0.000771
First Submitted: 2019-01-01 22:16 (UTC)
Last Updated: 2023-08-19 13:32 (UTC)

Latest Comments

1 2 Next › Last »

arti commented on 2023-08-08 15:04 (UTC)

Please rename 99-uuu.rules into 70-uuu.rules. This is needed because otherwise the TAG+="uaccess" rule has no effect

diff --git a/PKGBUILD b/PKGBUILD
index f98bf75c8870..29913cbbb063 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -40,10 +40,10 @@ package() {
   install -d -m 755 "$comp_dir"
   install -m 644 "$srcdir"/uuu-complete.bash "$comp_dir"/uuu-complete.bash

-  ./uuu/uuu -udev > 99-uuu.rules
+  ./uuu/uuu -udev > 70-uuu.rules
   udev_dir="$pkgdir"/usr/lib/udev/rules.d/
   install -d -m 755 "$udev_dir"
-  install -m 644 99-uuu.rules "$udev_dir"/99-uuu.rules
+  install -m 644 70-uuu.rules "$udev_dir"/70-uuu.rules

   lic_dir="$pkgdir"/usr/share/licenses/mfgtools/
   install -d -m 755 "$lic_dir"

Theowhy commented on 2023-07-22 10:12 (UTC)

Version updated to 1.5.21

Thank you Jona for the patch

Jona commented on 2023-07-09 12:17 (UTC)

PKGBUILD to update to prerelease version 1.5.109

# Maintainer: Theowhy <aur.theowhy@shizoku.fr>
# Contributor: jpkotta
pkgname=mfgtools
pkgver=1.5.109
pkgrel=1
pkgdesc="Freescale/NXP I.MX Chip image deploy tools"
arch=(x86_64)
url="https://github.com/NXPmicro/mfgtools"
license=('BSD')
depends=('bzip2' 'zlib' 'libusb' 'libzip' 'openssl')
makedepends=('cmake')
changelog=History.md
source=(https://github.com/NXPmicro/mfgtools/releases/download/uuu_$pkgver/uuu_source-uuu_$pkgver.tar.gz uuu-complete.bash uuu-cstdint.patch)
sha256sums=('6c99b82c55202f43583dc41198225dea7d5b050e33e13946751911e473aed4a5'
            'ffc8e32655ce574a4719c85c5c9a3530a5ec619e933fc801a291df8ec506a442'
            '47abe1c92af90b04339f9eb9e339f762e759d964137bd2c62db508fcdd43e097')


prepare() {
  # patch sources to include cstdint to avoid compilation errors
  patch --directory="uuu-uuu_$pkgver" --forward --strip=1 --input="${srcdir}/uuu-cstdint.patch"
}


build() {
  cd "uuu-uuu_$pkgver"
  # Remove useless folders to make
  rm -Rf -- bzip2 libusb msvc zlib
  mkdir -p build
  cd build

  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
  make
}

package() {
  cd "uuu-uuu_$pkgver/build"

  make DESTDIR="$pkgdir/" install

  comp_dir="$pkgdir"/etc/bash_completion.d/
  install -d -m 755 "$comp_dir"
  install -m 644 "$srcdir"/uuu-complete.bash "$comp_dir"/uuu-complete.bash

  ./uuu/uuu -udev > 99-uuu.rules
  udev_dir="$pkgdir"/usr/lib/udev/rules.d/
  install -d -m 755 "$udev_dir"
  install -m 644 99-uuu.rules "$udev_dir"/99-uuu.rules

  lic_dir="$pkgdir"/usr/share/licenses/mfgtools/
  install -d -m 755 "$lic_dir"
  install -m 644 ../LICENSE "$lic_dir"/LICENSE
}

Jona commented on 2023-07-09 11:58 (UTC)

I'm having troubles building this package, files uuu-1.5.11/libuuu/libcomm.h and uuu-1.5.11/uuu/buildincmd.h require an additional #include <cstdint> to build using gcc version 13.1. I have made local changes on PKGBUILD to patch the sources and it works even with version 1.5.21 (updating sha256sum of course). Contents of new PKGBUILD are:

# Maintainer: Theowhy <aur.theowhy@shizoku.fr>
# Contributor: jpkotta
pkgname=mfgtools
pkgver=1.5.21
pkgrel=1
pkgdesc="Freescale/NXP I.MX Chip image deploy tools"
arch=(x86_64)
url="https://github.com/NXPmicro/mfgtools"
license=('BSD')
depends=('bzip2' 'zlib' 'libusb' 'libzip' 'openssl')
makedepends=('cmake')
changelog=History.md
source=(https://github.com/NXPmicro/mfgtools/releases/download/uuu_$pkgver/uuu_source-$pkgver.tar.gz uuu-complete.bash uuu-cstdint.patch)
sha256sums=('600be50827b52df4dddf0c7d07da27b103a4576eb445890905c61780e3c36871'
            'ffc8e32655ce574a4719c85c5c9a3530a5ec619e933fc801a291df8ec506a442'
            '47abe1c92af90b04339f9eb9e339f762e759d964137bd2c62db508fcdd43e097')


prepare() {
  # patch sources to include cstdint to avoid compilation errors
  patch --directory="uuu-$pkgver" --forward --strip=1 --input="${srcdir}/uuu-cstdint.patch"
}


build() {
  cd "uuu-$pkgver"
  # Remove useless folders to make
  rm -Rf -- bzip2 libusb msvc zlib
  mkdir -p build
  cd build

  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
  make
}

package() {
  cd "uuu-$pkgver/build"

  make DESTDIR="$pkgdir/" install

  comp_dir="$pkgdir"/etc/bash_completion.d/
  install -d -m 755 "$comp_dir"
  install -m 644 "$srcdir"/uuu-complete.bash "$comp_dir"/uuu-complete.bash

  ./uuu/uuu -udev > 99-uuu.rules
  udev_dir="$pkgdir"/usr/lib/udev/rules.d/
  install -d -m 755 "$udev_dir"
  install -m 644 99-uuu.rules "$udev_dir"/99-uuu.rules

  lic_dir="$pkgdir"/usr/share/licenses/mfgtools/
  install -d -m 755 "$lic_dir"
  install -m 644 ../LICENSE "$lic_dir"/LICENSE
}

and the patch (uuu-cstring.patch) content is

diff '--color=auto' --unified --recursive --text --color uuu-1.5.11.orig/libuuu/libcomm.h uuu-1.5.11.new/libuuu/libcomm.h
--- uuu-1.5.11.orig/libuuu/libcomm.h    2022-11-01 20:42:46.000000000 +0100
+++ uuu-1.5.11.new/libuuu/libcomm.h 2023-07-09 13:31:24.344615430 +0200
@@ -29,6 +29,7 @@
 *
 */
 #include <string>
+#include <cstdint>
 #include <stdarg.h>
 #include <locale>
 #include <cctype>
diff '--color=auto' --unified --recursive --text --color uuu-1.5.11.orig/uuu/buildincmd.h uuu-1.5.11.new/uuu/buildincmd.h
--- uuu-1.5.11.orig/uuu/buildincmd.h    2022-11-01 20:42:46.000000000 +0100
+++ uuu-1.5.11.new/uuu/buildincmd.h 2023-07-09 13:31:55.148653209 +0200
@@ -33,6 +33,7 @@

 #include <map>
 #include <string>
+#include <cstdint>
 #include <vector>

 extern const char * g_vt_boldwhite;

Theowhy commented on 2023-06-01 21:06 (UTC) (edited on 2023-06-01 21:06 (UTC) by Theowhy)

I removed the out of date flag because the package is not out of date. It's actually on the latest pre-release 1.5.11 at the time of writing (https://github.com/nxp-imx/mfgtools/releases)

Theowhy commented on 2022-04-04 20:41 (UTC)

Thank you for the patch. It's indeed much better

jjguti commented on 2022-04-04 14:00 (UTC)

Patch for version update and use a released tarball with sha256sums instead of git.

diff --git a/.SRCINFO b/.SRCINFO
index 78ac4bc..4712bce 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,21 +1,20 @@
 pkgbase = mfgtools
    pkgdesc = Freescale/NXP I.MX Chip image deploy tools
-   pkgver = 1.4.165
+   pkgver = 1.4.193
    pkgrel = 1
    url = https://github.com/NXPmicro/mfgtools
    changelog = History.md
    arch = x86_64
    license = BSD
    makedepends = cmake
-   makedepends = git
    depends = bzip2
    depends = zlib
    depends = libusb
    depends = libzip
    depends = openssl
-   source = git+https://github.com/NXPmicro/mfgtools#tag=uuu_1.4.165
+   source = https://github.com/NXPmicro/mfgtools/releases/download/uuu_1.4.193/uuu_source-1.4.193.tar.gz
    source = uuu-complete.bash
-   sha256sums = SKIP
-   sha256sums = SKIP
+   sha256sums = a9b8b74e32e6718d591c66951b8b52276df7862db80ee943e046947f7313e57f
+   sha256sums = ffc8e32655ce574a4719c85c5c9a3530a5ec619e933fc801a291df8ec506a442

 pkgname = mfgtools
diff --git a/PKGBUILD b/PKGBUILD
index 6daf7b4..cc6b981 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,34 +1,22 @@
 # Maintainer: Theowhy <aur.theowhy@shizoku.fr>
 # Contributor: jpkotta
 pkgname=mfgtools
-pkgver=1.4.165
+pkgver=1.4.193
 pkgrel=1
 pkgdesc="Freescale/NXP I.MX Chip image deploy tools"
 arch=(x86_64)
 url="https://github.com/NXPmicro/mfgtools"
 license=('BSD')
-groups=()
 depends=('bzip2' 'zlib' 'libusb' 'libzip' 'openssl')
-makedepends=('cmake' 'git')
-optdepends=()
-provides=()
-conflicts=()
-replaces=()
-backup=()
-options=()
-install=
+makedepends=('cmake')
 changelog=History.md
-source=(git+https://github.com/NXPmicro/mfgtools#tag=uuu_$pkgver uuu-complete.bash)
-noextract=()
-sha256sums=(SKIP SKIP)
+source=(https://github.com/NXPmicro/mfgtools/releases/download/uuu_$pkgver/uuu_source-$pkgver.tar.gz uuu-complete.bash)
+sha256sums=('a9b8b74e32e6718d591c66951b8b52276df7862db80ee943e046947f7313e57f'
+            'ffc8e32655ce574a4719c85c5c9a3530a5ec619e933fc801a291df8ec506a442')

-pkgver() {
-  cd "$pkgname"
-  git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/uuu_//g'
-}

 build() {
-  cd "$pkgname"
+  cd "uuu-$pkgver"
   mkdir -p build
   cd build

@@ -37,7 +25,7 @@ build() {
 }

 package() {
-  cd "$pkgname/build"
+  cd "uuu-$pkgver/build"

   make DESTDIR="$pkgdir/" install

iznogoud77 commented on 2021-01-25 09:09 (UTC)

libzip is needed as a dependency, please include it.

DeusP commented on 2020-01-21 22:38 (UTC)

PKGBUILD have been updated using the gist you have created.

Thank you for the changes.

jpkotta commented on 2020-01-21 20:52 (UTC) (edited on 2020-01-21 20:52 (UTC) by jpkotta)

Here's an update to the PKGBUILD: https://gist.github.com/jpkotta/1bb56a2bf16c0f88a4ef12e3a1b454e1

It adds the LICENSE file (which clears the only warning from namcap), adds a bash completion file, generates a udev rules file, and adds some makedeps.