From 4cd7631df32f1e5d18b0090d9ffcd60db0e21859 Mon Sep 17 00:00:00 2001 From: bra1nwave Date: Wed, 29 Nov 2017 14:43:55 +0100 Subject: [PATCH] New package: airspy-1.0.9 --- common/shlibs | 1 + srcpkgs/airspy/template | 38 ++++++++++++++++++++++++++++++++++++++ srcpkgs/libairspy | 1 + srcpkgs/libairspy-devel | 1 + 4 files changed, 41 insertions(+) create mode 100644 srcpkgs/airspy/template create mode 120000 srcpkgs/libairspy create mode 120000 srcpkgs/libairspy-devel diff --git a/common/shlibs b/common/shlibs index 7bd10733e5..d1bed14d7a 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2908,3 +2908,4 @@ libmega.so.30207 libmega-3.2.7_1 libopenglrecorder.so.0 libopenglrecorder-0.1.0_1 libgpod.so.4 libgpod-0.8.3_1 libi2c.so.0 i2c-tools-4.0_1 +libairspy.so.0 libairspy-1.0.9_1 diff --git a/srcpkgs/airspy/template b/srcpkgs/airspy/template new file mode 100644 index 0000000000..1665d72f62 --- /dev/null +++ b/srcpkgs/airspy/template @@ -0,0 +1,38 @@ +# Template file for 'airspy' +pkgname=airspy +version=1.0.9 +revision=1 +wrksrc=airspyone_host-${version} +build_style=cmake +hostmakedepends="pkg-config" +makedepends="libusb-devel" +_desc="Tiny and efficient software defined radio (SDR)" +short_desc="${_desc} - tools" +maintainer="bra1nwave " +license="GPL-2" +homepage="https://airspy.com/" +distfiles="https://github.com/airspy/airspyone_host/archive/v${version}.tar.gz" +checksum=967ef256596d4527b81f007f77b91caec3e9f5ab148a8fec436a703db85234cc + +pre_configure() { + sed -i 's|MODE="660", GROUP="plugdev"|TAG+="uaccess"|' airspy-tools/52-airspy.rules +} + +libairspy_package() { + short_desc="${_desc} - library" + pkg_install() { + vmove usr/lib/*.so.* + vinstall airspy-tools/52-airspy.rules 644 usr/lib/udev/rules.d/ + } +} + +libairspy-devel_package() { + short_desc="${_desc} - development files" + depends="libairspy>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove usr/lib/*.a + vmove usr/lib/*.so + vmove usr/lib/pkgconfig + } +} diff --git a/srcpkgs/libairspy b/srcpkgs/libairspy new file mode 120000 index 0000000000..76228c6a6c --- /dev/null +++ b/srcpkgs/libairspy @@ -0,0 +1 @@ +airspy \ No newline at end of file diff --git a/srcpkgs/libairspy-devel b/srcpkgs/libairspy-devel new file mode 120000 index 0000000000..76228c6a6c --- /dev/null +++ b/srcpkgs/libairspy-devel @@ -0,0 +1 @@ +airspy \ No newline at end of file