diff options
author | Gonzalo Exequiel Pedone | 2024-04-02 10:15:20 -0300 |
---|---|---|
committer | Gonzalo Exequiel Pedone | 2024-04-02 10:15:20 -0300 |
commit | a9113945165ae00dcd93a93519d14d1bf464a424 (patch) | |
tree | 2a3efd47a53f70ef91ef2cd31282366983ee7b39 | |
download | aur-a9113945165ae00dcd93a93519d14d1bf464a424.tar.gz |
New package.
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 46 |
3 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..10a1add92883 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = android-armv7a-eabi-libusb + pkgdesc = Library that provides generic access to USB devices (Android armv7a-eabi) + pkgver = 1.0.27 + pkgrel = 1 + url = https://libusb.info/ + arch = any + license = LGPL-2.1-or-later + makedepends = android-configure + depends = android-ndk + options = !strip + options = !buildflags + options = staticlibs + options = !emptydirs + source = https://github.com/libusb/libusb/releases/download/v1.0.27/libusb-1.0.27.tar.bz2 + md5sums = 1fb61afe370e94f902a67e03eb39c51f + +pkgname = android-armv7a-eabi-libusb diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..b5b03b115225 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +pkg +src +*.tar.xz +*.tar.gz +*.tar.bz2 +*.asc diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c5485fa73bb6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com> +# Contributor: David Runge <dvzrv@archlinux.org> +# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org> +# Contributor: Tobias Powalowski <tpowa@archlinux.org> + +_android_arch=armv7a-eabi + +pkgname=android-${_android_arch}-libusb +pkgver=1.0.27 +pkgrel=1 +arch=('any') +pkgdesc="Library that provides generic access to USB devices (Android ${_android_arch})" +url="https://libusb.info/" +license=('LGPL-2.1-or-later') +depends=('android-ndk') +makedepends=('android-configure') +options=(!strip !buildflags staticlibs !emptydirs) +source=("https://github.com/libusb/libusb/releases/download/v$pkgver/libusb-$pkgver.tar.bz2") +md5sums=('1fb61afe370e94f902a67e03eb39c51f') + +prepare() { + cd "${srcdir}/libusb-$pkgver" + source android-env ${_android_arch} + + autoreconf -fiv +} + +build() { + cd "${srcdir}/libusb-$pkgver" + source android-env ${_android_arch} + + # configure: error: udev support requested but libudev header not installed + + android-${_android_arch}-configure \ + --enable-udev=no + make $MAKEFLAGS +} + +package () { + cd "${srcdir}/libusb-$pkgver" + source android-env ${_android_arch} + + make DESTDIR="$pkgdir" install + ${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}"/${ANDROID_PREFIX_LIB}/*.so + ${ANDROID_STRIP} -g "$pkgdir"/${ANDROID_PREFIX_LIB}/*.a +} |