summaryrefslogtreecommitdiff
path: root/multilib/lib32-libusb/PKGBUILD
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /multilib/lib32-libusb/PKGBUILD
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'multilib/lib32-libusb/PKGBUILD')
-rw-r--r--multilib/lib32-libusb/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/multilib/lib32-libusb/PKGBUILD b/multilib/lib32-libusb/PKGBUILD
new file mode 100644
index 000000000..d79cf8aed
--- /dev/null
+++ b/multilib/lib32-libusb/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+
+pkgname=lib32-libusb
+pkgver=1.0.8
+pkgrel=1
+pkgdesc="Library to enable user space application programs to communicate with USB devices. (32-bit)"
+arch=('x86_64')
+url="http://libusb.sourceforge.net/"
+license=('LGPL')
+depends=('lib32-glibc' 'libusb')
+makedepends=('gcc-multilib')
+source=(http://downloads.sourceforge.net/libusb/libusb-${pkgver}.tar.bz2)
+options=(!libtool)
+md5sums=('37d34e6eaa69a4b645a19ff4ca63ceef')
+
+build() {
+ cd "${srcdir}/libusb-${pkgver}"
+
+ export CC="gcc -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ ./configure --prefix=/usr --libdir=/usr/lib32
+
+ make
+}
+
+package () {
+ cd "${srcdir}/libusb-${pkgver}"
+
+ make DESTDIR="${pkgdir}" install
+ rm -rf ${pkgdir}/usr/include
+}
+