[arch-commits] Commit in airspy/repos (3 files)
Felix Yan
felixonmars at archlinux.org
Tue Jul 7 16:04:08 UTC 2020
Date: Tuesday, July 7, 2020 @ 16:04:07
Author: felixonmars
Revision: 659091
archrelease: copy trunk to community-staging-x86_64
Added:
airspy/repos/community-staging-x86_64/
airspy/repos/community-staging-x86_64/PKGBUILD
(from rev 659089, airspy/trunk/PKGBUILD)
airspy/repos/community-staging-x86_64/airspy.conf
(from rev 659089, airspy/trunk/airspy.conf)
-------------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
airspy.conf | 3 +++
2 files changed, 41 insertions(+)
Copied: airspy/repos/community-staging-x86_64/PKGBUILD (from rev 659089, airspy/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-07-07 16:04:07 UTC (rev 659091)
@@ -0,0 +1,38 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+pkgname=airspy
+pkgver=1.0.9
+pkgrel=2
+pkgdesc="Host code for Airspy SDR."
+arch=('x86_64')
+url="https://www.airspy.com"
+license=('GPL2')
+depends=('libusb>=1.0')
+makedepends=('cmake')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/airspy/airspyone_host/archive/v$pkgver.tar.gz"
+ "airspy.conf")
+md5sums=('90decb238bbd81e92671fd9d944b1920'
+ '29e481d56bfc56cface4f1457ca6df23')
+
+prepare() {
+ cd "$srcdir/airspyone_host-$pkgver"
+ # FS#47169
+ sed -i 's|MODE.*$|TAG+="uaccess"|' airspy-tools/52-airspy.rules
+}
+
+build() {
+ cd "$srcdir/airspyone_host-$pkgver"
+ mkdir -p build
+ cd build
+ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -Wno-dev ../
+ make
+}
+
+package() {
+ cd "$srcdir/airspyone_host-$pkgver/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:
Copied: airspy/repos/community-staging-x86_64/airspy.conf (from rev 659089, airspy/trunk/airspy.conf)
===================================================================
--- community-staging-x86_64/airspy.conf (rev 0)
+++ community-staging-x86_64/airspy.conf 2020-07-07 16:04:07 UTC (rev 659091)
@@ -0,0 +1,3 @@
+# disable official kernel driver
+# (remove this when Airspy supports kernel driver)
+blacklist airspy
More information about the arch-commits
mailing list