summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b935f98d868e4ce94aa611e41c8b38c0e9db6da9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: Roberto Nobrega <rwnobrega@gmail.com>

pkgname=plsdr-git
_gitname=PLSDR
pkgver=r26.f3b59e2
pkgrel=3
pkgdesc="A powerful Python-based software-defined radio (SDR)"
arch=('any')
url="https://arachnoid.com/PLSDR/index.html"
license=('GPL3')
groups=()
depends=('gnuradio' 'gnuradio-osmosdr' 'python2-pyqt5')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=("git://github.com/lutusp/${_gitname}.git")
noextract=()
md5sums=('SKIP')


pkgver() {
  cd $srcdir/${_gitname}
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd $srcdir
  sed -i -e 's/env python$/env python2/g' ${_gitname}/*.py
  install -d ${pkgdir}/usr/share/${_gitname}
  cp -r $srcdir/${_gitname}/* ${pkgdir}/usr/share/${_gitname}
  mkdir ${pkgdir}/usr/bin/
  echo "python2 /usr/share/PLSDR/PLSDR.py" > ${pkgdir}/usr/bin/${_gitname}
  chmod +x ${pkgdir}/usr/bin/${_gitname}
}