[arch-commits] Commit in gnuradio-osmosdr/repos (2 files)

Kyle Keen kkeen at archlinux.org
Wed Aug 21 02:12:54 UTC 2019


    Date: Wednesday, August 21, 2019 @ 02:12:53
  Author: kkeen
Revision: 500365

archrelease: copy trunk to community-staging-x86_64

Added:
  gnuradio-osmosdr/repos/community-staging-x86_64/
  gnuradio-osmosdr/repos/community-staging-x86_64/PKGBUILD
    (from rev 500364, gnuradio-osmosdr/trunk/PKGBUILD)

----------+
 PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

Copied: gnuradio-osmosdr/repos/community-staging-x86_64/PKGBUILD (from rev 500364, gnuradio-osmosdr/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-08-21 02:12:53 UTC (rev 500365)
@@ -0,0 +1,52 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com?>
+# Contributor: Dominik Heidler <dheidler at gmail.com>
+
+pkgname=gnuradio-osmosdr
+_pkgname=gr-osmosdr
+_r=128
+_commit=f3905d3510dfb3851f946f097a9e2ddaa5fb333b
+pkgver=0.1.5.r$_r.${_commit:0:6}
+pkgrel=1
+pkgdesc='Source block for Funcube Dongle, RTL-SDR, USRP, OsmoSDR, BladeRF, HackRF and AirSpy devices'
+url='https://sdr.osmocom.org/trac/'
+arch=('x86_64')
+license=('GPL')
+depends=('gnuradio' 'gnuradio-iqbal' 'rtl-sdr' 'gnuradio-fcdproplus' 'hackrf' 'bladerf' 'airspy')
+optdepends=('python2-opengl: osmocom_fft')
+makedepends=('git' 'cmake' 'boost' 'python2-cheetah' 'swig')
+replaces=('gr-osmosdr')
+#source=("git://git.osmocom.org/gr-osmosdr#commit=$_commit")
+# use this random dude's repo, because where is osmocom?
+source=("git://github.com/igorauad/gr-osmosdr/#commit=$_commit")
+md5sums=('SKIP')
+
+# add support for miri, osmo?
+
+prepare() {
+  cd $_pkgname
+
+  #sed -i 's/python$/python2/' apps/osmocom_siggen_base.py
+}
+
+build() {
+  cd $_pkgname
+
+  mkdir -p build
+  cd build
+
+  cmake \
+    -Wno-dev \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DPYTHON_EXECUTABLE="$(which python3)" \
+    -DPYTHON_INCLUDE_DIR="$(echo /usr/include/python3*)" \
+    -DPYTHON_LIBRARY="$(echo /usr/lib/libpython3.*.so)" \
+    -DCMAKE_INSTALL_PREFIX=/usr ../
+
+  make
+}
+
+package() {
+  cd $_pkgname/build
+
+  make DESTDIR="$pkgdir" install
+}


More information about the arch-commits mailing list