# Maintainer: Natanael Copa pkgname=libusb pkgver=1.0.9_rc1 _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="LGPL" 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 --prefix=/usr make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/*.la || return 1 } md5sums="4d131792dd73cb8cf7156a88065e462f libusb-1.0.9-rc1.tar.bz2"