blob: 03a57cd8802b6883ead47385f05f2dd610394786 (
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
33
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libusbx
pkgver=1.0.16
_ver=${pkgver/_/-}
pkgrel=1
pkgdesc="Library to enable user space application programs to communicate with USB devices"
url="http://libusb.sourceforge.net/"
arch="all"
license="LGPL2+"
subpackages="$pkgname-dev"
replaces="libusb"
makedepends="udev-dev"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2"
_builddir="$srcdir"/$pkgname-$_ver
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/*.la || return 1
}
md5sums="7f5715d624cd6c26b30a317eb6c2fe5e libusbx-1.0.16.tar.bz2"
sha256sums="5b335cf9572d793da6ced55bce633894288a8ff39557f07ccc798f2cb74cb580 libusbx-1.0.16.tar.bz2"
sha512sums="a92fd006afab80c051edc725105bbf1c7b79bdc050fde750d81bf050195e1f19be6217682c0cdf047754eed1be5848c915aac3d5364acc72a8324ce0f8b9e698 libusbx-1.0.16.tar.bz2"
|