52 lines
1.5 KiB
Bash
52 lines
1.5 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.25
|
|
pkgrel=03
|
|
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"
|
|
0001-core-Install-first-context-as-implicit-default.patch)
|
|
|
|
prepare() {
|
|
cd "$pkgname-$pkgver"
|
|
# patch -Np1 -i ../"${pkgname}-1.0.24-descriptor_parsing.patch"
|
|
# FS#74110 / Work around API misuse in gutenprint - patch taken from Fedora
|
|
patch -Np1 -i "$srcdir"/0001-core-Install-first-context-as-implicit-default.patch
|
|
autoreconf -fiv
|
|
}
|
|
|
|
build() {
|
|
cd "$pkgname-$pkgver"
|
|
./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$pkgname-$pkgver"
|
|
make -k check
|
|
}
|
|
|
|
package () {
|
|
depends+=(libudev.so)
|
|
cd "$pkgname-$pkgver"
|
|
make DESTDIR="$pkgdir" install
|
|
install -vDm 644 {AUTHORS,ChangeLog,README} -t "${pkgdir}/usr/share/doc/${pkgname}/"
|
|
}
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
license=('LGPL2.1')
|
|
|
|
sha256sums=(8a28ef197a797ebac2702f095e81975e2b02b2eeff2774fa909c78a74ef50849 # libusb-1.0.25.tar.bz2
|
|
8b4f772775767c75a4f68fb182d12064e009c1d3146599463b82ff347ec06a2f) # 0001-core-Install-first-context-as-implicit-default.patch
|