summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Krenek (Mikos)2017-02-15 23:46:18 +0100
committerMichal Krenek (Mikos)2017-02-15 23:46:18 +0100
commitb6d7025dcbf3f475c6a6ae1e4da03f9fabd01cad (patch)
treeb08d7c413740e69cb50513c7f48c5061fcb4dbf1
downloadaur-libmirisdr4-git.tar.gz
Initial version
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD34
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7dbfb8bdfae
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+# Generated by mksrcinfo v8
+# Wed Feb 15 22:45:56 UTC 2017
+pkgbase = libmirisdr4-git
+ pkgdesc = Support of Mirics MSi001 + MSi2500 SDR devices (yet another flavour of libmirisdr)
+ pkgver = r21.30a4f96
+ pkgrel = 1
+ url = https://github.com/f4exb/libmirisdr-4
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ makedepends = cmake
+ depends = libusb>=1.0
+ provides = libmirisdr
+ provides = libmirisdr4
+ provides = libmirisdr-git
+ conflicts = libmirisdr
+ conflicts = libmirisdr4
+ conflicts = libmirisdr-git
+ source = libmirisdr4-git::git+https://github.com/f4exb/libmirisdr-4.git
+ md5sums = SKIP
+
+pkgname = libmirisdr4-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9d2f614fee2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Michal Krenek (Mikos) <m.krenek@gmail.com>
+pkgname=libmirisdr4-git
+pkgver=r21.30a4f96
+pkgrel=1
+pkgdesc="Support of Mirics MSi001 + MSi2500 SDR devices (yet another flavour of libmirisdr)"
+arch=('i686' 'x86_64')
+url="https://github.com/f4exb/libmirisdr-4"
+license=('GPL')
+depends=('libusb>=1.0')
+makedepends=('git' 'cmake')
+provides=('libmirisdr' 'libmirisdr4' 'libmirisdr-git')
+conflicts=('libmirisdr' 'libmirisdr4' 'libmirisdr-git')
+source=("${pkgname}::git+https://github.com/f4exb/libmirisdr-4.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/${pkgname}"
+ cmake . \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/${pkgname}"
+ make DESTDIR="$pkgdir/" install
+ mkdir -p "${pkgdir}/etc/udev/rules.d/"
+ cp "$srcdir/${pkgname}/mirisdr.rules" "${pkgdir}/etc/udev/rules.d/99-mirisdr.rules"
+}