[arch-commits] Commit in usbutils/repos (3 files)

Tobias Powalowski tpowa at archlinux.org
Wed Aug 17 16:07:02 UTC 2011


    Date: Wednesday, August 17, 2011 @ 12:07:01
  Author: tpowa
Revision: 135703

archrelease: copy trunk to testing-x86_64

Added:
  usbutils/repos/testing-x86_64/
  usbutils/repos/testing-x86_64/PKGBUILD
    (from rev 135702, usbutils/trunk/PKGBUILD)
  usbutils/repos/testing-x86_64/fix-python2.patch
    (from rev 135702, usbutils/trunk/fix-python2.patch)

-------------------+
 PKGBUILD          |   43 +++++++++++++++++++++++++++++++++++++++++++
 fix-python2.patch |   17 +++++++++++++++++
 2 files changed, 60 insertions(+)

Copied: usbutils/repos/testing-x86_64/PKGBUILD (from rev 135702, usbutils/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2011-08-17 16:07:01 UTC (rev 135703)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Judd Vinet <jvinet at zeroflux.org>
+# Contributor: Curtis Campbell <curtisjamescampbell at hotmail.com>
+pkgname=usbutils
+pkgver=004
+pkgrel=1
+_usb_ids_date=2011.08.17
+pkgdesc="USB Device Utilities"
+arch=(i686 x86_64)
+license=('GPL')
+groups=('base')
+makedepends=('wget')
+depends=('glibc' 'libusb')
+optdepends=('python2: for lsusb.py usage'
+           'coreutils: for lsusb.py usage')
+url="http://linux-usb.sourceforge.net/"
+source=(http://www.kernel.org/pub/linux/utils/usb/$pkgname/$pkgname-$pkgver.tar.gz
+        fix-python2.patch
+        usb.ids-${_usb_ids_date})  # from http://linux-usb.sourceforge.net/usb.ids
+md5sums=('481e1de453bcabbd5f43125bb4df2ab7'
+         '45766196895b4cc50b53cd56e1bbf3d1'
+         'f04c301b5363ef618f0ec776deff3117')
+
+build() {
+  cd $srcdir/$pkgname-$pkgver
+  rm usb.ids
+  cp $srcdir/usb.ids-${_usb_ids_date} usb.ids
+  # patch lsusb.py to use correct usb.ids file and python2 interpreter
+  patch -Np1 -i $srcdir/fix-python2.patch
+  ./configure --prefix=/usr --datadir=/usr/share/hwdata --disable-zlib
+  make
+}
+
+package() {
+  cd $srcdir/$pkgname-$pkgver
+  make DESTDIR=$pkgdir install
+  # fix pkgconfig file
+  install -dm755 $pkgdir/usr/lib
+  mv $pkgdir/usr/share/pkgconfig $pkgdir/usr/lib/
+}
+md5sums=('481e1de453bcabbd5f43125bb4df2ab7'
+         '45766196895b4cc50b53cd56e1bbf3d1'
+         'f04c301b5363ef618f0ec776deff3117')

Copied: usbutils/repos/testing-x86_64/fix-python2.patch (from rev 135702, usbutils/trunk/fix-python2.patch)
===================================================================
--- testing-x86_64/fix-python2.patch	                        (rev 0)
+++ testing-x86_64/fix-python2.patch	2011-08-17 16:07:01 UTC (rev 135703)
@@ -0,0 +1,17 @@
+--- usbutils-002/lsusb.py	2010-12-16 01:07:09.000000000 +0100
++++ usbutils-002/lsusb.py	2011-04-09 22:43:59.043828595 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python2
+ # lsusb.py
+ # Displays your USB devices in reasonable form.
+ # (c) Kurt Garloff <garloff at suse.de>, 2/2009, GPL v2 or v3.
+@@ -16,7 +16,7 @@
+ warnsort = False
+ 
+ prefix = "/sys/bus/usb/devices/"
+-usbids = "/usr/share/usb.ids"
++usbids = "/usr/share/hwdata/usb.ids"
+ 
+ esc = chr(27)
+ norm = esc + "[0;0m"




More information about the arch-commits mailing list