[arch-commits] Commit in libusb/repos (staging-x86_64 staging-x86_64/PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Sun Apr 10 20:10:49 UTC 2022
Date: Sunday, April 10, 2022 @ 20:10:48
Author: dvzrv
Revision: 442277
archrelease: copy trunk to staging-x86_64
Added:
libusb/repos/staging-x86_64/
libusb/repos/staging-x86_64/PKGBUILD
(from rev 442276, libusb/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: libusb/repos/staging-x86_64/PKGBUILD (from rev 442276, libusb/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2022-04-10 20:10:48 UTC (rev 442277)
@@ -0,0 +1,40 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Tobias Powalowski <tpowa at archlinux.org>
+
+pkgname=libusb
+pkgver=1.0.26
+pkgrel=1
+pkgdesc="Library that provides generic access to USB devices"
+arch=(x86_64)
+url="https://libusb.info/"
+license=(LGPL2.1)
+depends=(glibc)
+makedepends=(systemd)
+provides=(libusb-1.0.so)
+options=(debug)
+source=(https://github.com/$pkgname/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.bz2)
+sha512sums=('fcdb85c98f21639668693c2fd522814d440972d65883984c4ae53d0555bdbdb7e8c7a32199cd4b01113556a1eb5be7841b750cc73c9f6bda79bfe1af80914e71')
+b2sums=('0cc397ecf4de0066abbff9b286a9e4fcd48658698d5e0d6b736abf56b48c1b55a05f15fff7be53fd33f767621e0c25d87275a47e05a4bcb44c4b8ac9221cd081')
+
+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/"
+}
More information about the arch-commits
mailing list