[arch-commits] Commit in lib32-libusb/repos (2 files)
David Runge
dvzrv at gemini.archlinux.org
Sun Apr 10 20:13:03 UTC 2022
Date: Sunday, April 10, 2022 @ 20:13:03
Author: dvzrv
Revision: 1185783
archrelease: copy trunk to multilib-staging-x86_64
Added:
lib32-libusb/repos/multilib-staging-x86_64/
lib32-libusb/repos/multilib-staging-x86_64/PKGBUILD
(from rev 1185782, lib32-libusb/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: lib32-libusb/repos/multilib-staging-x86_64/PKGBUILD (from rev 1185782, lib32-libusb/trunk/PKGBUILD)
===================================================================
--- multilib-staging-x86_64/PKGBUILD (rev 0)
+++ multilib-staging-x86_64/PKGBUILD 2022-04-10 20:13:03 UTC (rev 1185783)
@@ -0,0 +1,41 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: David Runge <dvzrv at archlinux.org>
+# Contributor: 3V0LU710N <db_eee-at-hotmail-dot-com>
+
+_name=libusb
+pkgname=lib32-libusb
+pkgver=1.0.26
+pkgrel=1
+pkgdesc="A cross-platform user library to access USB devices (32-bit)"
+arch=(x86_64)
+url="http://libusb.info/"
+license=(LGPL2.1)
+depends=(lib32-glibc lib32-systemd libusb=$pkgver)
+makedepends=(gcc-multilib)
+provides=(libusb-1.0.so)
+options=(debug)
+source=(https://github.com/$_name/$_name/releases/download/v$pkgver/$_name-$pkgver.tar.bz2)
+sha512sums=('fcdb85c98f21639668693c2fd522814d440972d65883984c4ae53d0555bdbdb7e8c7a32199cd4b01113556a1eb5be7841b750cc73c9f6bda79bfe1af80914e71')
+b2sums=('0cc397ecf4de0066abbff9b286a9e4fcd48658698d5e0d6b736abf56b48c1b55a05f15fff7be53fd33f767621e0c25d87275a47e05a4bcb44c4b8ac9221cd081')
+
+prepare() {
+ cd $_name-$pkgver
+ autoreconf -fiv
+}
+
+build() {
+ export CC="gcc -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ cd $_name-$pkgver
+ ./configure --prefix=/usr \
+ --libdir=/usr/lib32 \
+ --disable-static
+ make
+}
+
+package () {
+ make DESTDIR="$pkgdir" install -C $_name-$pkgver
+ rm -rf "${pkgdir}"/usr/include
+ install -vDm 644 $_name-$pkgver/{AUTHORS,ChangeLog,NEWS,README,TODO} -t "$pkgdir/usr/share/doc/$pkgname/"
+}
More information about the arch-commits
mailing list