aboutsummaryrefslogblamecommitdiffstats
path: root/main/libusb/APKBUILD
blob: 4de038b5eeaee49a89e3f11120128ac9f05c624c (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                   
            

                  

                                                                                           
          
                
                          
          
              
 









                                                                      

                                                                           

                                  
         

                                 
                        


           
                       

                                                  
 
                                                                
# 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 --prefix=/usr
	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"