summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Grande2021-01-09 01:57:40 -0500
committerVincent Grande2021-01-09 01:57:40 -0500
commit7866745d1fae2162d347e9fcdd2cac4e035c6461 (patch)
treeeba04fc0c242c2ef3ad8a7e3e923fd756a6d4d6e
downloadaur-7866745d1fae2162d347e9fcdd2cac4e035c6461.tar.gz
initial upload
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD44
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..cff2c440b1c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = lib32-libusb-git
+ pkgdesc = A cross-platform user library to access USB devices (32-bit)
+ pkgver = 1.0.24
+ pkgrel = 1
+ url = http://libusb.info/
+ arch = x86_64
+ license = LGPL2.1
+ makedepends = gcc-multilib
+ depends = lib32-glibc
+ depends = libusb
+ provides = libusb-1.0.so
+ provides = lib32-libusb
+ conflicts = lib32-libusb
+ source = git+https://github.com/libusb/libusb.git
+ sha512sums = SKIP
+
+pkgname = lib32-libusb-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..98dee657159
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Vincent Grande <shoober420@gmail.com>
+# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: David Runge <dvzrv@archlinux.org>
+# Contributor: 3V0LU710N <db_eee-at-hotmail-dot-com>
+
+_name=libusb
+pkgname=lib32-libusb-git
+pkgver=1.0.24
+pkgrel=1
+pkgdesc="A cross-platform user library to access USB devices (32-bit)"
+arch=('x86_64')
+url="http://libusb.info/"
+license=('LGPL2.1')
+depends=('lib32-glibc' 'libusb')
+provides=('libusb-1.0.so' 'lib32-libusb')
+conflicts=(lib32-libusb)
+makedepends=('gcc-multilib')
+source=("git+https://github.com/libusb/libusb.git")
+sha512sums=('SKIP')
+
+pkgver() {
+ cd libusb
+ git describe --tags | sed 's/-/+/g'
+}
+
+build() {
+ export CC="gcc -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ cd libusb
+ ./bootstrap.sh
+ ./configure --prefix=/usr \
+ --libdir=/usr/lib32 \
+ --disable-static
+ make
+}
+
+package () {
+ cd libusb
+ make DESTDIR="${pkgdir}" install
+ rm -rf "${pkgdir}"/usr/include
+ install -vDm 644 {AUTHORS,ChangeLog,NEWS,README,TODO} \
+ -t "${pkgdir}/usr/share/doc/${pkgname}/"
+}