[arch-commits] Commit in dfu-util/trunk (PKGBUILD)

Anatol Pomozov anatolik at gemini.archlinux.org
Tue Aug 31 17:18:37 UTC 2021


    Date: Tuesday, August 31, 2021 @ 17:18:37
  Author: anatolik
Revision: 1010149

Add dfuse-pack tool to the package

Thanks to Alexis BRENON for the contribution

Modified:
  dfu-util/trunk/PKGBUILD

----------+
 PKGBUILD |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-08-31 17:08:33 UTC (rev 1010148)
+++ PKGBUILD	2021-08-31 17:18:37 UTC (rev 1010149)
@@ -4,12 +4,13 @@
 
 pkgname=dfu-util
 pkgver=0.10
-pkgrel=1
+pkgrel=2
 pkgdesc='Tool intended to download and upload firmware using DFU protocol to devices connected over USB'
 url='http://dfu-util.sourceforge.net/'
 license=(GPL2)
 arch=(x86_64)
-depends=(libusb)
+depends=(libusb python)
+optdepends=('python-intelhex: Intel HEX file format support')
 install=dfu-util.install
 source=(stm32dfu.udev.rules
         http://dfu-util.sourceforge.net/releases/$pkgname-$pkgver.tar.gz)
@@ -26,5 +27,6 @@
 package() {
   cd $pkgname-$pkgver
   make DESTDIR="$pkgdir" install
+  install -Dm755 "$srcdir/$pkgname-$pkgver"/dfuse-pack.py "$pkgdir"/usr/bin/dfuse-pack
   install -Dm644 "$srcdir"/stm32dfu.udev.rules "$pkgdir"/usr/lib/udev/rules.d/48-stm32dfu.rules
 }



More information about the arch-commits mailing list