blob: 80dac94998b5b98da85e2d99c0c0a67c9d397f9f (
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
|
# Maintainer: Julien Savard <juju@juju2143.ca>
pkgname=numworks-omega-git
pkgver=1.19.0.E13.r556.gf0c46adeb
pkgrel=1
pkgdesc="A simulator for the Numworks graphic calculator (Omega firmware)"
arch=('x86_64')
url="https://getomega.web.app"
license=('custom:CC-BY-NC-SA')
groups=()
depends=('gcc-libs' 'libxext' 'libjpeg-turbo')
makedepends=('freetype2' 'imagemagick' 'gendesk')
optdepends=()
provides=('numworks-omega')
conflicts=('numworks-omega')
replaces=()
options=()
install=
changelog=
source=("$pkgname::git+https://github.com/Omega-Numworks/Omega.git#branch=omega-dev"
"git+https://github.com/Omega-Numworks/Omega-Atom.git"
"git+https://github.com/Omega-Numworks/Omega-RPN.git"
"git+https://github.com/Omega-Numworks/Omega-Themes.git")
md5sums=('SKIP'
'SKIP'
'SKIP'
'SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/O//'
}
prepare() {
cd "$pkgname"
git submodule init
git config submodule."apps/atom".git.url $srcdir/Omega-Atom
git config submodule."apps/rpn".git.url $srcdir/Omega-RPN
git config submodule."themes".git.url $srcdir/Omega-Themes
git submodule update
convert -background "#C53431" "ion/src/simulator/assets/logo.svg" "${pkgname%-git}.png"
gendesk -f -n --pkgname "${pkgname%-git}" --pkgdesc "$pkgdesc" --name "Numworks Omega" --icon "${pkgname%-git}" --exec "${pkgname%-git}" --categories "Education;Emulator"
}
build() {
cd "$pkgname"
make PLATFORM=simulator clean
make PLATFORM=simulator
}
package() {
cd "$pkgname"
install -Dm755 output/release/simulator/linux/epsilon.bin "$pkgdir/usr/bin/${pkgname%-git}"
install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 "${pkgname%-git}.png" "$pkgdir/usr/share/pixmaps/${pkgname%-git}.png"
install -Dm644 "${pkgname%-git}.desktop" "$pkgdir/usr/share/applications/${pkgname%-git}.desktop"
}
|