[arch-commits] Commit in lib32-libusb/repos (2 files)

David Runge dvzrv at archlinux.org
Thu Dec 10 20:15:06 UTC 2020


    Date: Thursday, December 10, 2020 @ 20:15:04
  Author: dvzrv
Revision: 773077

archrelease: copy trunk to multilib-testing-x86_64

Added:
  lib32-libusb/repos/multilib-testing-x86_64/
  lib32-libusb/repos/multilib-testing-x86_64/PKGBUILD
    (from rev 773076, lib32-libusb/trunk/PKGBUILD)

----------+
 PKGBUILD |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

Copied: lib32-libusb/repos/multilib-testing-x86_64/PKGBUILD (from rev 773076, lib32-libusb/trunk/PKGBUILD)
===================================================================
--- multilib-testing-x86_64/PKGBUILD	                        (rev 0)
+++ multilib-testing-x86_64/PKGBUILD	2020-12-10 20:15:04 UTC (rev 773077)
@@ -0,0 +1,43 @@
+# 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.24
+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')
+provides=('libusb-1.0.so')
+makedepends=('gcc-multilib')
+source=("https://github.com/${_name}/${_name}/releases/download/v$pkgver/${_name}-$pkgver.tar.bz2")
+sha512sums=('5aea36a530aaa15c6dd656d0ed3ce204522c9946d8d39ffbb290dab4a98cda388a2598da4995123d1032324056090bd429e702459626d3e8d7daeebc4e7ff3dc')
+b2sums=('f6188b5af1225cf8b6d1486b6efcf48e837ee4f2e3592adab3ae6aae0a74a67aa54f40f0dd547f951a194d40954f2ee33acf741d2eee0b8449ce64f2edcf1018')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "${pkgname}-${pkgver}"
+  cd "${pkgname}-${pkgver}"
+  autoreconf -vfi
+}
+
+build() {
+  export CC="gcc -m32"
+  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+  cd "${pkgname}-${pkgver}"
+  ./configure --prefix=/usr \
+              --libdir=/usr/lib32 \
+              --disable-static
+  make
+}
+
+package () {
+  cd "${pkgname}-${pkgver}"
+  make DESTDIR="${pkgdir}" install
+  rm -rf "${pkgdir}"/usr/include
+  install -vDm 644 {AUTHORS,ChangeLog,NEWS,README,TODO} \
+    -t "${pkgdir}/usr/share/doc/${pkgname}/"
+}



More information about the arch-commits mailing list