aboutsummaryrefslogtreecommitdiffstats
path: root/main/libusbx/APKBUILD
blob: 95006be28947f2eb5df097180d06b5e5c79a90b8 (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
44
45
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libusbx
pkgver=1.0.17
_ver=${pkgver/_/-}
pkgrel=2
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=""
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2
	"

_builddir="$srcdir"/$pkgname-$_ver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-udev \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
}
md5sums="99467ca2cb81c19c4a172de9f30e7576  libusbx-1.0.17.tar.bz2"
sha256sums="876f8d2c3fee73840a89cb78f3e384c0ab73a67f9155a010b1a5a73ece5145b8  libusbx-1.0.17.tar.bz2"
sha512sums="fddde538197707e6a97a6ddefab0deeba67f93def1694dac8379589d442c707f8319b1bd9fae6587b25ddaa92ce7894f3ec2e65ddfc031697c15e4c65d251d31  libusbx-1.0.17.tar.bz2"