diff options
author | Niels Martignène | 2015-06-12 19:42:11 +0200 |
---|---|---|
committer | Niels Martignène | 2015-06-12 19:42:11 +0200 |
commit | 632aac8d03009fccbe163be68d6b5fbc4f470564 (patch) | |
tree | ba2ad97ecfad4f98c0765a75f5cb29a6698c654a | |
download | aur-632aac8d03009fccbe163be68d6b5fbc4f470564.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 43 |
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e9591a03dc4c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = mingw-w64-libusb + pkgdesc = Library that provides generic access to USB devices (mingw-w64) + pkgver = 1.0.19 + pkgrel = 1 + url = http://libusb.info + arch = any + license = LGPL + makedepends = mingw-w64-gcc + depends = mingw-w64-crt + conflicts = mingw-w64-libusbx + replaces = mingw-w64-libusbx + options = !strip + options = staticlibs + options = !buildflags + source = http://downloads.sourceforge.net/project/libusb/libusb-1.0/libusb-1.0.19/libusb-1.0.19.tar.bz2 + sha256sums = 6c502c816002f90d4f76050a6429c3a7e0d84204222cbff2dce95dd773ba6840 + +pkgname = mingw-w64-libusb + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..58be5175269c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Niels Martignène <niels.martignene@gmail.com> +# Contributor: xantares <xantares09 at hotmail dot com> + +pkgname=mingw-w64-libusb +pkgver=1.0.19 +pkgrel=1 +pkgdesc="Library that provides generic access to USB devices (mingw-w64)" +arch=(any) +url="http://libusb.info" +license=('LGPL') +depends=('mingw-w64-crt') +makedepends=('mingw-w64-gcc') +conflicts=('mingw-w64-libusbx') +replaces=('mingw-w64-libusbx') +options=('!strip' 'staticlibs' '!buildflags') +source=("http://downloads.sourceforge.net/project/libusb/libusb-1.0/libusb-${pkgver}/libusb-${pkgver}.tar.bz2") +sha256sums=('6c502c816002f90d4f76050a6429c3a7e0d84204222cbff2dce95dd773ba6840') + +_architectures=('i686-w64-mingw32' 'x86_64-w64-mingw32') + +build() { + unset LDFLAGS + cd "libusb-${pkgver}" + for _arch in "${_architectures[@]}"; do + mkdir -p build-${_arch} && pushd build-${_arch} + ../configure --prefix=/usr/${_arch} \ + --host=${_arch} \ + --enable-shared + make + popd + done +} + +package () { + cd "libusb-${pkgver}" + for _arch in "${_architectures[@]}"; do + pushd build-${_arch} + make install DESTDIR="${pkgdir}" + ${_arch}-strip --strip-unneeded "${pkgdir}/usr/${_arch}/bin/"*.dll + ${_arch}-strip -g "${pkgdir}/usr/${_arch}/lib/"*.a + popd + done +} |