From 1caa1d5eb39e6d1b0bf96af4be1e095b31495305 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 16 Jan 2011 18:39:41 +0100 Subject: mass changes Signed-off-by: Florian Pritz --- lib32-libusb/PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 lib32-libusb/PKGBUILD (limited to 'lib32-libusb/PKGBUILD') diff --git a/lib32-libusb/PKGBUILD b/lib32-libusb/PKGBUILD new file mode 100644 index 0000000..76396f9 --- /dev/null +++ b/lib32-libusb/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: PyroPeter +# Contributor: Florian Pritz + +_pkgbasename=libusb +pkgname=lib32-$_pkgbasename +pkgver=1.0.8 +pkgrel=1 +pkgdesc="Library to enable user space application programs to communicate with USB devices (32-bit)" +arch=(x86_64) +depends=('gcc-libs-multilib' $_pkgbasename) +makedepends=(gcc-multilib) +replaces=('lib32-libusb1') +url="http://libusb.sourceforge.net/" +license=('LGPL') +options=('!libtool') +source=("http://downloads.sourceforge.net/$_pkgbasename/$_pkgbasename-$pkgver.tar.bz2") +md5sums=('37d34e6eaa69a4b645a19ff4ca63ceef') + +build() { + export CC="gcc -m32" + export CXX="g++ -m32" + export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" + + cd "$srcdir/$_pkgbasename-$pkgver" + ./configure --prefix=/usr --libdir=/usr/lib32 + make +} + +package() { + cd "$srcdir/$_pkgbasename-$pkgver" + + make DESTDIR="$pkgdir" install + rm -rf "${pkgdir}"/usr/{include,share,bin} +} -- cgit v1.2.3-24-g4f1b