blob: 9ed02f9949fa4c2aef5daab8d95e579d64483157 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Maintainer: f4iey <f4iey@f4iey.fr>
pkgname=cwsim-git
pkgver=r105.be867e1
pkgrel=3
pkgdesc="Cross-platform amateur radio WPX CW contest simulator written in python, based on Morse Runner."
arch=('any')
license=('GPL3')
url="https://github.com/w9cf/cwsim"
makedepends=(git)
depends=(
python
python-cffi
python-cycler
python-fonttools
python-kiwisolver
python-matplotlib
python-packaging
python-pillow
python-pycparser
python-pyparsing
python-pyqt6
python-pyqt6-sip
python-dateutil
python-pyxdg
python-six
python-sounddevice
python-numpy
)
source=(
$pkgname::"git+$url.git"
cwsim.desktop
MRunnerIcon.gif
)
sha256sums=('SKIP' 'SKIP' 'SKIP')
prepare(){
git -C "$srcdir/$pkgname" clean -dfx
}
pkgver() {
cd "$srcdir/$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build(){
# Compile UI...
cd "$srcdir/$pkgname/python"
pyuic6 -x "cwsimgui.ui" -o "cwsimgui.py" --indent=3
}
package() {
cd $srcdir/$pkgname/python
install -dm755 "$pkgdir/opt/$pkgname"
install -dm755 "$pkgdir/usr/bin"
install -Dm755 ./*.py "$pkgdir/opt/$pkgname"
install -Dm755 ./*.ui "$pkgdir/opt/$pkgname"
cp -r ./translate "$pkgdir/opt/$pkgname/"
install -Dm755 "MASTER.SCP" "$pkgdir/opt/$pkgname"
echo "python /opt/$pkgname/cwsim.py" > "$pkgdir/usr/bin/cwsim"
chmod 755 "$pkgdir/usr/bin/cwsim"
# Desktop icon
install -Dm644 "../../cwsim.desktop" "$pkgdir/usr/share/applications/cwsim.desktop"
install -Dm644 "../../MRunnerIcon.gif" "$pkgdir/usr/share/pixmaps/MRunnerIcon.gif"
}
|