aboutsummaryrefslogtreecommitdiffstats
path: root/main/libusb/APKBUILD
blob: 72feccc2be61bb2b2bc9c1732f2df6e7ca543631 (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
34
35
36
37
38
39
40
41
42
43
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libusb
pkgver=1.0.9
_ver=${pkgver/_/-}
pkgrel=0
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"
depends=""
makedepends=""

# This is a git snapshot of what will hopefully soon become 1.0.9, but
# we need this now, to get things in place for usb over network
# To regenerate do:
# git clone git://git.libusb.org/libusb.git
# cd libusb
# git checkout 1.0.9-rc1
# ./autogen.sh
# make dist
# mv libusb-1.0.8.tar.bz2 libusb-1.0.9-rc1.tar.bz2

source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2"
#source="http://dev.alpinelinux.org/~ncopa/alpine/$pkgname-$_ver.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="7f5a02375ad960d4e33a6dae7d63cfcb  libusb-1.0.9.tar.bz2"