diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-09-03 08:14:40 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-09-03 08:16:57 +0000 |
commit | 508604a36057880dcc359e84bea5034f3d0b37f0 (patch) | |
tree | c727f41005c4bf049c4e471b5a7bf09aee24ec7f /main/libusb | |
parent | da9bfd2fc7b9da1e46aaa37a8c8785aa10ad2c70 (diff) | |
download | aports-508604a36057880dcc359e84bea5034f3d0b37f0.tar.bz2 aports-508604a36057880dcc359e84bea5034f3d0b37f0.tar.xz |
main/libusb: renamed from libusbx
upstream libusbx has merged back to libusb
http://libusbx.org/
Diffstat (limited to 'main/libusb')
-rw-r--r-- | main/libusb/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/main/libusb/APKBUILD b/main/libusb/APKBUILD new file mode 100644 index 0000000000..80c172b9e7 --- /dev/null +++ b/main/libusb/APKBUILD @@ -0,0 +1,45 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=libusb +pkgver=1.0.19 +_ver=${pkgver/_/-} +pkgrel=0 +pkgdesc="Library to enable user space application programs to communicate with USB devices" +url="http://libusb.info/" +arch="all" +license="LGPL2+" +subpackages="$pkgname-dev" +replaces="libusbx" +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="f9e2bb5879968467e5ca756cb4e1fa7e libusb-1.0.19.tar.bz2" +sha256sums="6c502c816002f90d4f76050a6429c3a7e0d84204222cbff2dce95dd773ba6840 libusb-1.0.19.tar.bz2" +sha512sums="f42f0187bfec16ebabad64efef7a7651ee85dcf2af1b7cbe543b7de615f9c6432f7eea5fcc6b23335591dcad287c905eb9bd56199cc5d3b47435027ad678f2c1 libusb-1.0.19.tar.bz2" |