From e952048afa727fc1789b15aa14ac5abb289e8fc9 Mon Sep 17 00:00:00 2001 From: David P Date: Fri, 11 May 2018 13:28:38 -0300 Subject: pcr-multilib/lib32-libusb: add package Signed-off-by: David P --- nonsystemd-multilib/lib32-libusb/PKGBUILD | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 nonsystemd-multilib/lib32-libusb/PKGBUILD (limited to 'nonsystemd-multilib') diff --git a/nonsystemd-multilib/lib32-libusb/PKGBUILD b/nonsystemd-multilib/lib32-libusb/PKGBUILD new file mode 100644 index 000000000..8ca6a30af --- /dev/null +++ b/nonsystemd-multilib/lib32-libusb/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer (Arch): Sven-Hendrik Haase +# Contributor (Arch): 3V0LU710N +# Maintainer: David P. + +pkgname=lib32-libusb +pkgver=1.0.22 +pkgrel=1 +pkgrel+=.nonsystemd1 +pkgdesc="A cross-platform user library to access USB devices (32-bit)" +arch=('x86_64') +url="http://libusb.info/" +license=('LGPL') +depends=('lib32-glibc' 'libusb' 'lib32-eudev') +replaces=('lib32-libusb1' 'lib32-libusbx') +provides=("lib32-libusbx=$pkgver") +source=(https://github.com/libusb/libusb/releases/download/v$pkgver/libusb-$pkgver.tar.bz2) +md5sums=('466267889daead47674df933cea9cacb') + +build() { + export CC="gcc -m32" + export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" + + cd "libusb-${pkgver}" + ./configure --prefix=/usr --libdir=/usr/lib32 --disable-static + make -j1 +} + +package () { + cd "${srcdir}/libusb-${pkgver}" + make DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}"/usr/include +} -- cgit v1.2.3