summaryrefslogtreecommitdiffstats
path: root/lib32-libusb/PKGBUILD
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2011-01-16 18:39:41 +0100
committerFlorian Pritz <bluewind@xssn.at>2011-01-16 18:39:41 +0100
commit1caa1d5eb39e6d1b0bf96af4be1e095b31495305 (patch)
treee8a316c6168770f95125263fa9a3d196fa6d74c2 /lib32-libusb/PKGBUILD
parentb7197bccd0bc74c2082c935937b6d947c3ae756d (diff)
downloadaur-packages-1caa1d5eb39e6d1b0bf96af4be1e095b31495305.tar.gz
aur-packages-1caa1d5eb39e6d1b0bf96af4be1e095b31495305.tar.xz
mass changes
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'lib32-libusb/PKGBUILD')
-rw-r--r--lib32-libusb/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
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 <googlemail.com@abi1789>
+# Contributor: Florian Pritz <flo@xssn.at>
+
+_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}
+}