[arch-commits] Commit in (5 files)

Anatol Pomozov anatolik at nymeria.archlinux.org
Fri Feb 21 06:22:27 UTC 2014


    Date: Friday, February 21, 2014 @ 07:22:27
  Author: anatolik
Revision: 106008

stlink: move package from aur to community

Added:
  stlink/
  stlink/repos/
  stlink/trunk/
  stlink/trunk/PKGBUILD
  stlink/trunk/stlink.install

----------------+
 PKGBUILD       |   34 ++++++++++++++++++++++++++++++++++
 stlink.install |   23 +++++++++++++++++++++++
 2 files changed, 57 insertions(+)

Added: stlink/trunk/PKGBUILD
===================================================================
--- stlink/trunk/PKGBUILD	                        (rev 0)
+++ stlink/trunk/PKGBUILD	2014-02-21 06:22:27 UTC (rev 106008)
@@ -0,0 +1,34 @@
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+
+pkgname=stlink
+pkgrel=1
+pkgver=1.0.0
+pkgdesc='Firtmware programmer for STM32 STLINK v1/v2 protocol'
+arch=(i686 x86_64)
+url='https://github.com/texane/stlink'
+license=(BSD)
+depends=(libusb)
+install=stlink.install
+source=(https://github.com/texane/stlink/archive/$pkgver.zip)
+sha256sums=('09e676948adda9fd354d0a07584ad5884bc7f8e36ddb6b2f39b2211056b7263a')
+
+build() {
+  cd stlink-$pkgver
+  ./autogen.sh
+  ./configure --prefix=/usr
+  make
+}
+
+package() {
+  cd stlink-$pkgver
+
+  # install binaries
+  make DESTDIR="$pkgdir" install
+
+  # install additional files
+  install -Dm644 stlink_v1.modprobe.conf  "$pkgdir"/etc/modprobe.d/stlink_v1.modprobe.conf
+  install -Dm644 49-stlinkv1.rules        "$pkgdir"/etc/udev/rules.d/49-stlinkv1.rules
+  install -Dm644 49-stlinkv2.rules        "$pkgdir"/etc/udev/rules.d/49-stlinkv2.rules
+  install -Dm644 LICENSE                  "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  install -Dm644 README                   "$pkgdir"/usr/share/doc/$pkgname/README
+}


Property changes on: stlink/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: stlink/trunk/stlink.install
===================================================================
--- stlink/trunk/stlink.install	                        (rev 0)
+++ stlink/trunk/stlink.install	2014-02-21 06:22:27 UTC (rev 106008)
@@ -0,0 +1,23 @@
+msg() {
+# modprobe -r usb-storage && modprobe usb-storage
+  udevadm control --reload-rules
+  echo "You may have to reload the usb-storage module."
+  echo "To do this use"
+  echo "    modprobe -r usb-storage && modprobe usb-storage"
+}
+
+# arg 1:  the new package version
+post_install() {
+  msg
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_upgrade() {
+  msg
+}
+
+# arg 1:  the old package version
+post_remove() {
+  msg
+}




More information about the arch-commits mailing list