blob: f0d28da8d06fa9ce3a1b4fb2d0851d166a217716 (
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
66
67
68
69
70
71
72
73
74
|
# Maintainer: DimmKG <dirkg361@gmail.com>
# Contributor: wereii <wereii@wereii.cz>
# Contributor: Base pkgbuild files provided by Damian Blanco <blanco.damian@gmail.com>
# Contributor: franciscod <demartino.francisco@gmail.com>
# Based on: https://aur.archlinux.org/packages/simulide
pkgname=simulide-bzr
pkgver=1.0.1.r1300
_realver=${pkgver//.r*/}
pkgrel=1
pkgdesc="Real time electronic circuit simulator (supports PIC, AVR and Arduino microcontrollers)"
arch=("x86_64")
url="https://www.simulide.com/"
provides=('simulide')
conflicts=('simulide')
license=("GPL3")
source=(
"${pkgname}::bzr+https://launchpad.net/simulide/trunk"
"simulide.desktop")
sha256sums=(
SKIP
'a5b1f6b19d3fc2e93baa98beb000488a0e1f0fd93935cc7d86e8f0b345c11f23')
depends=(
"qt5-base>=5.15.1"
"qt5-multimedia"
"qt5-serialport"
"qt5-svg"
"qt5-script"
"qt5-tools"
"libelf>=0.181"
)
optdepends=(
"gpsim: needed for PIC simulation"
"simavr: needed for AVR simulation"
)
makedepends=(
"avr-libc"
"avr-gcc"
"python-dulwich"
)
build() {
cd "${srcdir}/${pkgname}/build_XX"
qmake
make
}
package() {
install -D -m644 simulide.desktop "${pkgdir}/usr/share/applications/${pkgname}.desktop"
cd "${srcdir}/${pkgname}/build_XX/executables/SimulIDE_${_realver}"
# binary
mkdir -p "${pkgdir}/usr/bin"
cp simulide "${pkgdir}/usr/bin/"
# data
mkdir -p "${pkgdir}/usr/share/simulide"
rsync -a --exclude simulide ./ "${pkgdir}/usr/share/simulide"
# icon
mkdir -p "${pkgdir}/usr/share/icons"
cp -r ${srcdir}/${pkgname}/resources/icons/* "${pkgdir}/usr/share/icons"
}
pkgver() {
VERSION=$(grep -ohP '(?<=VERSION = \")(.*)(?=\")' "${srcdir}/${pkgname}/SimulIDE.pro")
cd "${pkgname}"
REVISON=$(bzr revno)
echo "${VERSION}.r${REVISON}"
}
|