[arch-commits] Commit in dfu-util/repos (4 files)

Anatol Pomozov anatolik at archlinux.org
Sun Nov 29 16:48:28 UTC 2020


    Date: Sunday, November 29, 2020 @ 16:48:27
  Author: anatolik
Revision: 766354

archrelease: copy trunk to community-testing-x86_64

Added:
  dfu-util/repos/community-testing-x86_64/
  dfu-util/repos/community-testing-x86_64/PKGBUILD
    (from rev 766353, dfu-util/trunk/PKGBUILD)
  dfu-util/repos/community-testing-x86_64/dfu-util.install
    (from rev 766353, dfu-util/trunk/dfu-util.install)
  dfu-util/repos/community-testing-x86_64/stm32dfu.udev.rules
    (from rev 766353, dfu-util/trunk/stm32dfu.udev.rules)

---------------------+
 PKGBUILD            |   30 ++++++++++++++++++++++++++++++
 dfu-util.install    |   11 +++++++++++
 stm32dfu.udev.rules |   10 ++++++++++
 3 files changed, 51 insertions(+)

Copied: dfu-util/repos/community-testing-x86_64/PKGBUILD (from rev 766353, dfu-util/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2020-11-29 16:48:27 UTC (rev 766354)
@@ -0,0 +1,30 @@
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Øyvind 'Mr.Elendig' Heggstad <mrelendig at har-ikkje.net>
+# Contributor: Fabrizio Antonangeli <fabrizio.antonangeli at gmail.com>
+
+pkgname=dfu-util
+pkgver=0.10
+pkgrel=1
+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)
+install=dfu-util.install
+source=(stm32dfu.udev.rules
+        http://dfu-util.sourceforge.net/releases/$pkgname-$pkgver.tar.gz)
+sha256sums=('64d4314f354d965e3dc0fd439dc497d5d0a41bf649da1869df40f93718e5a6fe'
+            'a03dc58dfc79c056819c0544b2a5970537566460102b3d82cfb038c60e619b42')
+
+build() {
+  cd $pkgname-$pkgver
+  ./autogen.sh
+  ./configure --prefix=/usr
+  make
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+  install -Dm644 "$srcdir"/stm32dfu.udev.rules "$pkgdir"/usr/lib/udev/rules.d/48-stm32dfu.rules
+}

Copied: dfu-util/repos/community-testing-x86_64/dfu-util.install (from rev 766353, dfu-util/trunk/dfu-util.install)
===================================================================
--- community-testing-x86_64/dfu-util.install	                        (rev 0)
+++ community-testing-x86_64/dfu-util.install	2020-11-29 16:48:27 UTC (rev 766354)
@@ -0,0 +1,11 @@
+post_install() {
+  udevadm control --reload-rules
+}
+
+post_upgrade() {
+  udevadm control --reload-rules
+}
+
+post_remove() {
+  udevadm control --reload-rules
+}

Copied: dfu-util/repos/community-testing-x86_64/stm32dfu.udev.rules (from rev 766353, dfu-util/trunk/stm32dfu.udev.rules)
===================================================================
--- community-testing-x86_64/stm32dfu.udev.rules	                        (rev 0)
+++ community-testing-x86_64/stm32dfu.udev.rules	2020-11-29 16:48:27 UTC (rev 766354)
@@ -0,0 +1,10 @@
+# stm32 boards, with onboard DFU support
+
+SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", \
+    MODE:="0666", \
+    SYMLINK+="stm32_dfu"
+
+# If you share your linux system with other users, or just don't like the
+# idea of write permission for everybody, you can replace MODE:="0666" with
+# OWNER:="yourusername" to create the device owned by you, or with
+# GROUP:="somegroupname" and mange access using standard unix groups.



More information about the arch-commits mailing list