jobcore/libusb/PKGBUILD

55 lines
1.6 KiB
Bash
Raw Normal View History

2022-03-20 13:19:37 +01:00
#!/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
2022-04-16 13:41:56 +02:00
pkgver=1.0.26
2022-08-14 19:10:38 +02:00
#_pkgver=1.0.26.r18.gff8fe939
pkgrel=03
2022-07-28 16:57:46 +02:00
pkgdesc="A cross-platform library to access USB devices w/o systemd - git version"
2022-03-20 13:19:37 +01:00
url="https://libusb.info/"
2022-08-14 19:10:38 +02:00
depends=(glibc libeudev)
makedepends=(automake autoconf)
provides=(libusb-1.0.so)
2022-07-28 16:57:46 +02:00
conflicts=(libusb-git)
2022-08-14 19:10:38 +02:00
#options=(debug) ## uncomment this line to have the debug pkg produced
source=(https://github.com/$pkgname/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.bz2)
#source=(https://github.com/$pkgname/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.bz2{,.asc})
# libusb-1.0.26.tar.bz2 ... FAILED (the public key C68187379B23DE9EFC46651E2C80FF56C6830A0E is not trusted)
2022-03-20 13:19:37 +01:00
prepare() {
2022-08-14 19:10:38 +02:00
cd $pkgname-$pkgver
2022-03-20 13:19:37 +01:00
autoreconf -fiv
}
build() {
2022-08-14 19:10:38 +02:00
cd $pkgname-$pkgver
./configure --prefix=/usr
2022-03-20 13:19:37 +01:00
make
}
check() {
2022-08-14 19:10:38 +02:00
make -k check -C $pkgname-$pkgver
2022-03-20 13:19:37 +01:00
}
2022-07-28 16:57:46 +02:00
package() {
2022-08-14 19:10:38 +02:00
depends+=(libeudev)
2022-07-28 16:57:46 +02:00
2022-08-14 19:10:38 +02:00
make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
install -vDm 644 $pkgname-$pkgver/{AUTHORS,ChangeLog,README} -t "$pkgdir/usr/share/doc/$pkgname/"
2022-07-28 16:57:46 +02:00
2022-03-20 13:19:37 +01:00
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
2022-03-20 13:19:37 +01:00
2022-07-28 16:57:46 +02:00
license=(LGPL2.1)
2022-03-20 13:19:37 +01:00
2022-08-14 19:10:38 +02:00
sha256sums=(12ce7a61fc9854d1d2a1ffe095f7b5fac19ddba095c259e6067a46500381b5a5) # libusb-1.0.26.tar.bz2
# 37f1e6d18049c8771feea5b2c741777800333120d011b08e8c6ac02bb229ca82) # libusb-1.0.26.tar.bz2.asc