jobcore/libusb/PKGBUILD

56 lines
1.5 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
pkgver=1.0.27
pkgrel=01
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/"
_url="https://github.com/libusb/libusb"
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=($_url/releases/download/v$pkgver/$pkgname-$pkgver.tar.bz2)
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
# prevent excessive overlinking due to libtool
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
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
license=(LGPL-2.1-or-later)
sha256sums=(ffaa41d741a8a3bee244ac8e54a72ea05bf2879663c098c82fc5757853441575) # libusb-1.0.27.tar.bz2
## 520789b61f049e9987123006871f127d3f99412c2de069f20a455fbc5ba71f07 libusb-1.0.27-01-x86_64.pkg.tar.lz
2022-03-20 13:19:37 +01:00