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



                                 

                                



                
                  


           
                                      
 
 
                                                                                                                                                                    
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libusb
pkgver=1.0.24
_ver=${pkgver/_/-}
pkgrel=0
pkgdesc="Library that enables userspace access to USB devices"
url="https://libusb.info/"
arch="all"
license="LGPL-2.0-or-later"
subpackages="$pkgname-dev"
replaces="libusbx"
makedepends="linux-headers"
source="https://github.com/libusb/libusb/releases/download/v$pkgver/libusb-$pkgver.tar.bz2
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-udev \
		--disable-static
	make -j1
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="5aea36a530aaa15c6dd656d0ed3ce204522c9946d8d39ffbb290dab4a98cda388a2598da4995123d1032324056090bd429e702459626d3e8d7daeebc4e7ff3dc  libusb-1.0.24.tar.bz2"