summaryrefslogtreecommitdiff
path: root/multilib/lib32-libusb/PKGBUILD
blob: 5dbff488ceede57393f7e2a4f3291a369ebd0f47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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' 'mips64el')
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
}