[arch-commits] Commit in (6 files)

Anatol Pomozov anatolik at nymeria.archlinux.org
Fri Feb 21 18:47:33 UTC 2014


    Date: Friday, February 21, 2014 @ 19:47:33
  Author: anatolik
Revision: 106056

dfu-util: move package from aur to community

Added:
  dfu-util/
  dfu-util/repos/
  dfu-util/trunk/
  dfu-util/trunk/PKGBUILD
  dfu-util/trunk/dfu-util.install
  dfu-util/trunk/stm32dfu.udev.rules

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

Added: dfu-util/trunk/PKGBUILD
===================================================================
--- dfu-util/trunk/PKGBUILD	                        (rev 0)
+++ dfu-util/trunk/PKGBUILD	2014-02-21 18:47:33 UTC (rev 106056)
@@ -0,0 +1,31 @@
+# $Id$
+# 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.7
+pkgrel=3
+pkgdesc='Tool intended to download and upload firmware using DFU protocol to devices connected over USB'
+url='http://dfu-util.gnumonks.org'
+license=(GPL2)
+arch=(i686 x86_64)
+depends=(libusb)
+install=dfu-util.install
+source=(stm32dfu.udev.rules
+        http://dfu-util.gnumonks.org/releases/$pkgname-$pkgver.tar.gz)
+sha256sums=('64d4314f354d965e3dc0fd439dc497d5d0a41bf649da1869df40f93718e5a6fe'
+            'f52a2a5489fbf9f3204a6ada05e0b47ee322e19d81c712e0c58a332d80ec3eab')
+
+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"/etc/udev/rules.d/48-stm32dfu.rules
+}


Property changes on: dfu-util/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: dfu-util/trunk/dfu-util.install
===================================================================
--- dfu-util/trunk/dfu-util.install	                        (rev 0)
+++ dfu-util/trunk/dfu-util.install	2014-02-21 18:47:33 UTC (rev 106056)
@@ -0,0 +1,11 @@
+post_install() {
+  udevadm control --reload-rules
+}
+
+post_upgrade() {
+  udevadm control --reload-rules
+}
+
+post_remove() {
+  udevadm control --reload-rules
+}

Added: dfu-util/trunk/stm32dfu.udev.rules
===================================================================
--- dfu-util/trunk/stm32dfu.udev.rules	                        (rev 0)
+++ dfu-util/trunk/stm32dfu.udev.rules	2014-02-21 18:47:33 UTC (rev 106056)
@@ -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