summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorericek1112022-04-14 20:58:38 +0200
committerericek1112022-04-14 20:58:38 +0200
commit3e6847983100c29dd2cc3fdeaae54bcef23e0423 (patch)
tree782a8c4ea0392f2574e2b136ff8b08287a0121b0
downloadaur-3e6847983100c29dd2cc3fdeaae54bcef23e0423.tar.gz
first commit
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD30
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2f2a7db5065
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = libmirisdr5-git
+ pkgdesc = LibUSB driver for Mirics MSi001 + MSi2500 SDR devices
+ pkgver = r32.e9cd752
+ pkgrel = 1
+ url = https://github.com/ericek111/libmirisdr-5
+ arch = any
+ license = GPL
+ makedepends = git
+ makedepends = cmake
+ depends = libusb>=1.0
+ provides = libmirisdr
+ provides = libmirisdr5
+ provides = libmirisdr-git
+ conflicts = libmirisdr
+ conflicts = libmirisdr4
+ conflicts = libmirisdr5
+ conflicts = libmirisdr-git
+ source = libmirisdr5-git::git+https://github.com/ericek111/libmirisdr-5
+ md5sums = SKIP
+
+pkgname = libmirisdr5-git
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4d207633cf0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Erik Bročko (OM2LT) <erik@brocko.eu>
+pkgname=libmirisdr5-git
+pkgver=r32.e9cd752
+pkgrel=1
+pkgdesc="LibUSB driver for Mirics MSi001 + MSi2500 SDR devices"
+arch=('any')
+url="https://github.com/ericek111/libmirisdr-5"
+license=('GPL')
+depends=('libusb>=1.0')
+makedepends=('git' 'cmake')
+# libmirisdr-git is there only for soapyosmo-git
+provides=('libmirisdr' 'libmirisdr5' 'libmirisdr-git')
+conflicts=('libmirisdr' 'libmirisdr4' 'libmirisdr5' 'libmirisdr-git')
+source=("$pkgname"::'git+https://github.com/ericek111/libmirisdr-5')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cmake -B build -S "$srcdir/$pkgname" -DCMAKE_INSTALL_PREFIX=/usr
+ make -C build
+}
+
+package() {
+ make -C build DESTDIR="$pkgdir/" install
+ install -Dm 644 "$srcdir/$pkgname/mirisdr.rules" "$pkgdir/usr/lib/udev/rules.d/90-mirisdr.rules"
+}