jobcore/libusb/PKGBUILD

46 lines
1.1 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=libusb
pkgver=1.0.26
pkgrel=01
pkgdesc="Library that provides generic access to USB devices w/o systemd"
arch=(x86_64)
url="https://libusb.info/"
depends=('glibc')
makedepends=()
provides=('libusb-1.0.so')
#options=(debug)
source=("https://github.com/${pkgname}/${pkgname}/releases/download/v$pkgver/${pkgname}-$pkgver.tar.bz2")
prepare() {
cd $pkgname-$pkgver
autoreconf -fiv
}
build() {
cd "$pkgname-$pkgver"
./configure --prefix=/usr
make
}
check() {
make -k check -C $pkgname-$pkgver
}
package () {
depends+=(libudev.so)
make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
install -vDm 644 $pkgname-$pkgver/{AUTHORS,ChangeLog,README} -t "$pkgdir/usr/share/doc/$pkgname/"
}
#---- license gpg-key sha256sums ----
license=('LGPL2.1')
sha256sums=(12ce7a61fc9854d1d2a1ffe095f7b5fac19ddba095c259e6067a46500381b5a5) # libusb-1.0.26.tar.bz2