aboutsummaryrefslogtreecommitdiffstats
path: root/main/libusbx
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-08-16 07:47:45 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-08-16 07:47:45 +0000
commite138aeddeb04070f640119d42fa6abaf233753a8 (patch)
treea69eff168ee490cfd43f68771026db468d4dbab1 /main/libusbx
parent6f1ddc0389a34621786fafe07f52a2e01a8ec3f8 (diff)
downloadaports-e138aeddeb04070f640119d42fa6abaf233753a8.tar.bz2
aports-e138aeddeb04070f640119d42fa6abaf233753a8.tar.xz
main/libusbx: new aport
replaces libusb
Diffstat (limited to 'main/libusbx')
-rw-r--r--main/libusbx/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/main/libusbx/APKBUILD b/main/libusbx/APKBUILD
new file mode 100644
index 0000000000..362fe4bd35
--- /dev/null
+++ b/main/libusbx/APKBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libusbx
+pkgver=1.0.16
+_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="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"