summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorjuju21432020-06-13 13:44:29 -0400
committerjuju21432020-06-13 13:44:29 -0400
commit726c81d85d6076497bc3bb227529f41d846effae (patch)
treee6107a65ea3a3198b136b0ed2209a3d9e00ae8d8
downloadaur-726c81d85d6076497bc3bb227529f41d846effae.tar.gz
Add numworks-omega-git
-rw-r--r--.SRCINFO26
-rw-r--r--PKGBUILD58
2 files changed, 84 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..ba2a9df44536
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,26 @@
+pkgbase = numworks-omega-git
+ pkgdesc = A simulator for the Numworks graphic calculator (Omega firmware)
+ pkgver = 1.19.0.E13.r556.gf0c46adeb
+ pkgrel = 1
+ url = https://getomega.web.app
+ arch = x86_64
+ license = custom:CC-BY-NC-SA
+ makedepends = freetype2
+ makedepends = imagemagick
+ makedepends = gendesk
+ depends = gcc-libs
+ depends = libxext
+ depends = libjpeg-turbo
+ provides = numworks-omega
+ conflicts = numworks-omega
+ source = numworks-omega-git::git+https://github.com/Omega-Numworks/Omega.git#branch=omega-dev
+ source = git+https://github.com/Omega-Numworks/Omega-Atom.git
+ source = git+https://github.com/Omega-Numworks/Omega-RPN.git
+ source = git+https://github.com/Omega-Numworks/Omega-Themes.git
+ md5sums = SKIP
+ md5sums = SKIP
+ md5sums = SKIP
+ md5sums = SKIP
+
+pkgname = numworks-omega-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..80dac94998b5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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"
+}