summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-07-06 22:50:29 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-05-09 17:44:35 +0200
commit84af5a39d570e0196dc5859f96db94bb0af5d134 (patch)
tree26f726010c56e79ddf1a5d38fa5bfe9177d8cc3e
parent9064676abb26d30178c8ca76c75dcfbdc1918093 (diff)
xtrx: libusb3380-git: Add AUR PKGBUILDGNUtoo/xtrx-from-aur-wip
This PKGBUILD contains patches that have been submited to the PKGBUILD maintainer. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--pcr/libusb3380-git/PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/pcr/libusb3380-git/PKGBUILD b/pcr/libusb3380-git/PKGBUILD
new file mode 100644
index 000000000..6278493a0
--- /dev/null
+++ b/pcr/libusb3380-git/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer (AUR): Alexander Couzens <lynxis@fe80.eu>
+pkgname=libusb3380-git
+pkgver=r15.c83d1e9
+pkgrel=1
+pkgdesc="USB3380 abstraction layer for libusb"
+_gitname=libusb3380
+arch=('armv7h' 'i686' 'x86_64')
+url="https://github.com/xtrx-sdr/libusb3380"
+license=('LGPL')
+makedepends=('git' 'cmake')
+depends=('libusb')
+source=("git+$url")
+md5sums=('SKIP')
+provides=('libusb3380')
+
+pkgver() {
+ cd "$srcdir"/$_gitname
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ mkdir -p "$srcdir"/$_gitname/build
+ cd "$srcdir"/$_gitname/build
+
+ cmake .. \
+ -DBUILD_SHARED_LIBS=ON \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release
+
+ make
+}
+
+package() {
+ cd "$srcdir"/$_gitname/build
+
+ make DESTDIR="$pkgdir" install
+}
+