blob: 1e2f9261a829f34f63a0e4022d7616f045028860 (
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
|
# Maintainer: Ali Najafian <AliNajafian81@gmail.com>
pkgname=circuitjs-bin
pkgver=2.4.9
pkgrel=1
pkgdesc="Falstad Circuit Simulator for Linux. (Real and offline version)"
arch=(x86_64)
url="https://www.falstad.com/circuit/"
license=('GPL')
depends=()
makedepends=()
checkdepends=()
optdepends=()
provides=(circuitjs-bin)
conflicts=(circuitjs-bin)
options=(!strip)
source=("https://www.falstad.com/circuit/offline/circuitjs1-linux64.tgz"
https://i.postimg.cc/Y0ZkBmDV/circuitjs.png
circuitjs.desktop)
md5sums=('SKIP' 'SKIP' 'SKIP')
package()
{
cd $srcdir/circuitjs1
echo packaging ${pkgname}
install -d $pkgdir/opt/circuitjs/
install -d ${pkgdir}/usr/bin
cp -R "${srcdir}/circuitjs1/." "${pkgdir}/opt/circuitjs/"
# create symlink from real opt to bin
ln -s /opt/circuitjs/circuitjs1 "${pkgdir}"/usr/bin/circuitjs
#integrate the desktop file
install -d ${pkgdir}/usr/share/applications/
install -m644 ${srcdir}/circuitjs.desktop ${pkgdir}/usr/share/applications/circuitjs.desktop
#integrate icons...
for res in 32 48 64 128 192 256 512; do
install -d $pkgdir/usr/share/icons/hicolor/${res}x${res}/apps
install -m644 ${srcdir}/circuitjs.png $pkgdir/usr/share/icons/hicolor/${res}x${res}/apps/circuitjs.png
done
echo done!
}
|