1 # Contributor: Alexander 'hatred' Drozdov <adrozdoff@gmail.com>
3 pkgname=mingw32-libusb-win32
7 pkgdesc="Library to enable user space application programs to communicate with USB devices"
9 depends=('mingw32-gcc' 'sh')
10 url="http://libusb.sourceforge.net/"
12 source=(http://downloads.sourceforge.net/$_pkgname/$_pkgname-bin-$pkgver.zip)
16 cd "$srcdir/$_pkgname-bin-$pkgver"
18 _prefix=/usr/i486-mingw32
20 install -d "$pkgdir/$_prefix/bin/$_pkgname-bin"
21 install -d "$pkgdir/$_prefix/share/doc/$_pkgname"
22 install -d "$pkgdir/$_prefix/include"
23 install -d "$pkgdir/$_prefix/lib"
25 install -m 755 bin/x86/libusb0_x86.dll "$pkgdir/$_prefix/bin/libusb0.dll"
26 cp -a bin/* "$pkgdir/$_prefix/bin/$_pkgname-bin"
27 install -m 644 include/usb.h "$pkgdir/$_prefix/include/usb.h"
28 install -m 644 lib/gcc/libusb.a "$pkgdir/$_prefix/lib/libusb.a"
29 cp -a *.txt examples "$pkgdir/$_prefix/share/doc/$_pkgname"
31 md5sums=('594e4f1e273a8ed80c5847c487f7fa86')