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

Felix Yan felixonmars at archlinux.org
Tue Jul 7 16:12:08 UTC 2020


    Date: Tuesday, July 7, 2020 @ 16:12:07
  Author: felixonmars
Revision: 659162

archrelease: copy trunk to community-staging-x86_64

Added:
  dfu-util/repos/community-staging-x86_64/
  dfu-util/repos/community-staging-x86_64/PKGBUILD
    (from rev 659160, dfu-util/trunk/PKGBUILD)
  dfu-util/repos/community-staging-x86_64/dfu-util.install
    (from rev 659160, dfu-util/trunk/dfu-util.install)
  dfu-util/repos/community-staging-x86_64/stm32dfu.udev.rules
    (from rev 659161, 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-staging-x86_64/PKGBUILD (from rev 659160, dfu-util/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 16:12:07 UTC (rev 659162)
@@ -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.9
+pkgrel=3
+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'
+            '36428c6a6cb3088cad5a3592933385253da5f29f2effa61518ee5991ea38f833')
+
+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-staging-x86_64/dfu-util.install (from rev 659160, dfu-util/trunk/dfu-util.install)
===================================================================
--- community-staging-x86_64/dfu-util.install	                        (rev 0)
+++ community-staging-x86_64/dfu-util.install	2020-07-07 16:12:07 UTC (rev 659162)
@@ -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-staging-x86_64/stm32dfu.udev.rules (from rev 659161, dfu-util/trunk/stm32dfu.udev.rules)
===================================================================
--- community-staging-x86_64/stm32dfu.udev.rules	                        (rev 0)
+++ community-staging-x86_64/stm32dfu.udev.rules	2020-07-07 16:12:07 UTC (rev 659162)
@@ -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