aboutsummaryrefslogblamecommitdiffstats
path: root/community/hidapi/APKBUILD
blob: 7c128432f36e27f7c2838dbf496a20f905b841ff (plain) (tree)
1
2
3
4
5
6
7
8
                                                              
                                              
              
             
        
                                                                             
                                      
          





                                      
         



                                                                                      

         




                                             


           
                                               

 
            
                                                                                                                                                      
 
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=hidapi
pkgver=0.11.2
pkgrel=0
pkgdesc="Simple library for communicating with USB and Bluetooth HID devices"
url="https://github.com/libusb/hidapi"
arch="all"
license="GPL-3.0-only OR BSD-3-Clause"
makedepends="
	cmake
	eudev-dev
	libusb-dev
	linux-headers
	"
subpackages="$pkgname-dev"
source="https://github.com/libusb/hidapi/archive/hidapi-$pkgver/hidapi-$pkgver.tar.gz"
options="!check"  # No tests
builddir="$srcdir/hidapi-hidapi-$pkgver"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
c4d04bf570aa98dd88d7ce08ef1abb0675d500c9aa2c22f0437fa30b700a94446779f77e1170267926d5f6f0d9cdb2bb81ad1fe20d158c18587fddbca59e9517  hidapi-0.11.2.tar.gz
"