diff options
author | Chocobo1 | 2020-12-01 00:09:33 +0800 |
---|---|---|
committer | Chocobo1 | 2020-12-01 00:11:37 +0800 |
commit | 402a1892f284e35c200f12093850b874649ee5b4 (patch) | |
tree | 35cb2399571a65aaf9288b371dbb61f1265f90c5 /PKGBUILD | |
download | aur-402a1892f284e35c200f12093850b874649ee5b4.tar.gz |
newpkg: libusb-git 1.0.24.rc1.r0.g42ad1d1d-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..68896f4019ad --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> + +pkgname=libusb-git +pkgver=1.0.24.rc1.r0.g42ad1d1d +pkgrel=1 +pkgdesc="A cross-platform library to access USB devices" +arch=('i686' 'x86_64') +url="https://libusb.info/" +license=('LGPL') +depends=('glibc' 'libudev.so') +makedepends=('git') +provides=('libusb' 'libusb-1.0.so') +conflicts=('libusb') +options=('staticlibs') +source=("git+https://github.com/libusb/libusb.git") +sha256sums=('SKIP') + + +pkgver() { + cd "libusb" + + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "libusb" + + ./bootstrap.sh + ./configure \ + --prefix="/usr" + make +} + +check() { + cd "libusb" + + make check +} + +package() { + cd "libusb" + + make DESTDIR="$pkgdir" install +} |