summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Keen2015-06-13 00:23:31 -0400
committerKyle Keen2015-06-13 00:23:31 -0400
commit0deb68bdfedd8c8de0655738987d5d6af92f8baf (patch)
tree23a61fc6708e9fe6092f12d4044863b2eee6b326
downloadaur-airspy-git.tar.gz
Initial import
-rw-r--r--.AURINFO18
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD41
-rw-r--r--airspy.conf3
4 files changed, 82 insertions, 0 deletions
diff --git a/.AURINFO b/.AURINFO
new file mode 100644
index 00000000000..64a091745b5
--- /dev/null
+++ b/.AURINFO
@@ -0,0 +1,18 @@
+pkgbase = airspy-git
+ pkgdesc = Host code for Airspy SDR.
+ pkgver = 20141216
+ pkgrel = 1
+ url = http://www.airspy.com
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ makedepends = git
+ makedepends = cmake
+ depends = libusb>=1.0
+ provides = airspy
+ conflicts = airspy
+ source = git+https://github.com/airspy/host
+ source = airspy.conf
+
+pkgname = airspy-git
+
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..651f5110d57
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = airspy-git
+ pkgdesc = Host code for Airspy SDR.
+ pkgver = 20141216
+ pkgrel = 1
+ url = http://www.airspy.com
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ makedepends = git
+ makedepends = cmake
+ depends = libusb>=1.0
+ provides = airspy
+ conflicts = airspy
+ source = git+https://github.com/airspy/host
+ source = airspy.conf
+ md5sums = SKIP
+ md5sums = 29e481d56bfc56cface4f1457ca6df23
+
+pkgname = airspy-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..416b577387a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Kyle Keen <keenerd@gmail.com>
+
+pkgname=airspy-git
+pkgver=20141216
+pkgrel=1
+pkgdesc="Host code for Airspy SDR."
+arch=('i686' 'x86_64')
+url="http://www.airspy.com"
+license=('GPL2')
+depends=('libusb>=1.0')
+provides=('airspy')
+conflicts=('airspy')
+makedepends=('git' 'cmake')
+source=("git+https://github.com/airspy/host"
+ "airspy.conf")
+md5sums=('SKIP'
+ '29e481d56bfc56cface4f1457ca6df23')
+
+_gitname="host"
+
+pkgver() {
+ cd "$srcdir/$_gitname"
+ git show -s --format="%ci" HEAD | sed -e 's/-//g' -e 's/ .*//'
+}
+
+build() {
+ cd "$srcdir/$_gitname"
+ mkdir -p build
+ cd build
+ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -Wno-dev ../
+ make
+}
+
+package() {
+ cd "$srcdir/$_gitname/build"
+ make DESTDIR="$pkgdir" install
+ install -Dm644 "../airspy-tools/52-airspy.rules" "$pkgdir/usr/lib/udev/rules.d/52-airspy.rules"
+ install -Dm644 "$srcdir/airspy.conf" "$pkgdir/etc/modprobe.d/airspy.conf"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/airspy.conf b/airspy.conf
new file mode 100644
index 00000000000..3aef1f03696
--- /dev/null
+++ b/airspy.conf
@@ -0,0 +1,3 @@
+# disable official kernel driver
+# (remove this when Airspy supports kernel driver)
+blacklist airspy