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

Kyle Keen kkeen at archlinux.org
Wed Aug 15 09:17:14 UTC 2018


    Date: Wednesday, August 15, 2018 @ 09:17:14
  Author: kkeen
Revision: 371691

archrelease: copy trunk to community-staging-x86_64

Added:
  gqrx/repos/community-staging-x86_64/
  gqrx/repos/community-staging-x86_64/PKGBUILD
    (from rev 371690, gqrx/trunk/PKGBUILD)

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

Copied: gqrx/repos/community-staging-x86_64/PKGBUILD (from rev 371690, gqrx/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-08-15 09:17:14 UTC (rev 371691)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Dominik Heidler <dheidler at gmail.com>
+
+pkgname=gqrx
+pkgver=2.11.5
+pkgrel=1
+pkgdesc="Interactive SDR receiver waterfall for many devices."
+arch=('x86_64')
+url="http://gqrx.dk/"
+license=('GPL')
+depends=('qt5-svg' 'libpulse' 'gnuradio-osmosdr' 'libxkbcommon-x11')
+makedepends=('boost')
+#source=("$pkgname-$pkgver.tgz::https://github.com/csete/gqrx/archive/v$pkgver.tar.gz")
+source=("https://github.com/csete/gqrx/releases/download/v$pkgver/gqrx-sdr-$pkgver-src.tar.xz")
+md5sums=('fed4994d5c04daf70cb19e2393da7a04')
+
+prepare() {
+  cd "$srcdir"
+  echo "StartupNotify=false" >> gqrx-sdr-$pkgver/gqrx.desktop
+  cp -r gqrx-sdr-$pkgver gqrx-$pkgver-alsa
+  cd gqrx-$pkgver-alsa
+  sed -i 's/AUDIO_BACKEND = pulse/#&/' gqrx.pro
+}
+
+build() {
+  cd "$srcdir/$pkgname-sdr-$pkgver"
+  rm -rf build
+  mkdir build
+  cd build
+  qmake PREFIX=/usr/ ..
+  make
+  cd "$srcdir/$pkgname-$pkgver-alsa"
+  rm -rf build
+  mkdir build
+  cd build
+  qmake PREFIX=/usr/ ..
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname-sdr-$pkgver"
+  install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
+  install -Dm644 "resources/icons/gqrx.svg" "$pkgdir/usr/share/pixmaps/gqrx.svg"
+
+  cd "$srcdir/$pkgname-sdr-$pkgver/build"
+  make install INSTALL_ROOT="$pkgdir"
+
+  cd "$srcdir/$pkgname-$pkgver-alsa/build"
+  install -Dm755 gqrx "$pkgdir/usr/bin/gqrx-alsa"
+}
+



More information about the arch-commits mailing list