summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9832e9952800305a8878369d1344b0a280a8443a (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
# Maintainer: Antony Jordan <antony.r.jorda at gmail dot com>
# Co-Maintainer: Stephanie Wilde-Hobbs <arch at stephanie dot is>
pkgname=nanovna-saver
pkgver=0.6.5
pkgrel=1
pkgdesc="PC control for the NanoVNA."
arch=(any)
url="https://github.com/NanoVNA-Saver/nanovna-saver"
license=('GPL3')
depends=(python-pyqt6 python-scipy python-numpy python-pyserial qt5-base python-setuptools-scm)
makedepends=(python-setuptools)
source=(
  "$pkgname-$pkgver.tar.gz::https://github.com/NanoVNA-Saver/nanovna-saver/archive/v$pkgver.tar.gz"
  "$pkgname.desktop"
)
sha256sums=('99416aeec52b41dccedfe91541b6d1972205ba902cce002593d5c0ee986b6506'
            'b67fb284bc6a8ece865df8c117acd84f87141ab543fdd2959754250cf0b06b9e')

build() {
  cd "$pkgname-$pkgver"
  SETUPTOOLS_SCM_PRETEND_VERSION_FOR_NANOVNASAVER="${pkgver}" \
    python ./setup.py build
}

package() {
  cd "$pkgname-$pkgver"
  SETUPTOOLS_SCM_PRETEND_VERSION_FOR_NANOVNASAVER="${pkgver}" \
    python ./setup.py install --prefix=/usr --root="$pkgdir"

  mkdir -p "$pkgdir/usr/share/pixmaps"
  cp icon_48x48.png "$pkgdir/usr/share/pixmaps/$pkgname.png"

  mkdir -p "$pkgdir/usr/share/applications"
  cd ..
  cp $pkgname.desktop "$pkgdir/usr/share/applications"
}