diff options
author | David P <megver83@parabola.nu> | 2018-05-11 13:28:38 -0300 |
---|---|---|
committer | David P <megver83@parabola.nu> | 2018-05-11 13:28:38 -0300 |
commit | e952048afa727fc1789b15aa14ac5abb289e8fc9 (patch) | |
tree | ff3069a23165abcb01b085f3d122a1f2c5139ceb /nonsystemd-multilib | |
parent | 1ae4c4e72469fdc9c54365a58c8603cd888df136 (diff) | |
download | abslibre-e952048afa727fc1789b15aa14ac5abb289e8fc9.tar.gz abslibre-e952048afa727fc1789b15aa14ac5abb289e8fc9.tar.bz2 abslibre-e952048afa727fc1789b15aa14ac5abb289e8fc9.zip |
pcr-multilib/lib32-libusb: add package
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'nonsystemd-multilib')
-rw-r--r-- | nonsystemd-multilib/lib32-libusb/PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
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 <sh@lutzhaase.com> +# Contributor (Arch): 3V0LU710N <db_eee-at-hotmail-dot-com> +# Maintainer: David P. <megver83@parabola.nu> + +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 +} |