lib32/lib32-libusb/PKGBUILD

34 lines
1003 B
Bash
Raw Normal View History

2017-06-04 01:17:31 +08:00
# Contributions from ArchLinux: https://git.archlinux.org/svntogit/community.git/tree/trunk?h=packages/lib32-libusb
2012-09-12 22:53:11 +08:00
2014-09-19 06:12:30 +08:00
_pkgbasename=libusb
pkgname=lib32-$_pkgbasename
2017-06-04 01:15:42 +08:00
pkgver=1.0.21
2014-06-04 20:05:29 +08:00
pkgrel=1
2012-09-12 22:53:11 +08:00
pkgdesc="Library to enable user space application programs to communicate with USB devices. (32-bit). libusb fork."
arch=('x86_64')
2017-06-04 01:17:31 +08:00
url="http://libusb.info/"
2012-09-12 22:53:11 +08:00
license=('LGPL')
2014-09-19 06:12:30 +08:00
depends=('lib32-glibc' 'lib32-systemd' $_pkgbasename=$pkgver)
makedepends=('gcc-multilib')
provides=('lib32-libusbx')
conflicts=('lib32-libusbx')
replaces=('lib32-libusbx<=1.0.18')
2017-06-04 01:15:42 +08:00
source=(https://github.com/libusb/libusb/releases/download/v$pkgver/libusb-$pkgver.tar.bz2)
2012-09-12 22:53:11 +08:00
options=(!libtool)
2017-06-04 01:15:42 +08:00
md5sums=('1da9ea3c27b3858fa85c5f4466003e44')
2012-09-12 22:53:11 +08:00
build() {
export CC="gcc -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
2017-06-04 01:15:42 +08:00
cd "libusb-${pkgver}"
./configure --prefix=/usr --libdir=/usr/lib32 --disable-static
make -j1
2012-09-12 22:53:11 +08:00
}
package () {
2017-06-04 01:15:42 +08:00
cd "${srcdir}/libusb-${pkgver}"
2012-09-12 22:53:11 +08:00
make DESTDIR="${pkgdir}" install
2017-06-04 01:15:42 +08:00
rm -rf "${pkgdir}"/usr/include
2012-11-23 05:50:02 +08:00
}