blob: 7367e991b447acef4ec4477d1f70bdebbbf91f67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# $Id: PKGBUILD 162998 2012-07-05 06:50:21Z tpowa $
# Maintainer:
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: arjan <arjan@archlinux.org>
pkgname=libusb-compat
pkgver=0.1.4
pkgrel=2
pkgdesc="Library to enable user space application programs to communicate with USB devices"
arch=('i686' 'x86_64' 'mips64el')
url="http://libusb.sourceforge.net/"
license=('LGPL')
depends=('libusb' 'sh')
options=('!libtool')
source=("http://downloads.sourceforge.net/${pkgname%-*}/${pkgname}-${pkgver%.*}/$pkgname-$pkgver/${pkgname}-${pkgver}.tar.bz2"
"libusb-0.1-libusbx.patch")
md5sums=('2ca521fffadd0c28fdf174e6ec73865b'
'1612c3982f307da1332d6db57b16742b')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
# http://libusb.org/ticket/138 can be removed with libusbx 1.0.13
patch -Np0 -i ../libusb-0.1-libusbx.patch
./configure --prefix=/usr --disable-static
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
}
|