Add omacalc

This commit is contained in:
David Heinemeier Hansson
2026-08-01 19:25:25 -07:00
parent f95d544fdb
commit 897256ca01
2 changed files with 52 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
# Maintainer: David Heinemeier Hansson <david@hey.com>
pkgname=omacalc
pkgver=0.1.0
pkgrel=1
pkgdesc='Dead-simple calculator built with Qt Quick'
arch=('x86_64' 'aarch64')
url='https://github.com/omacom-io/omacalc'
license=('MIT' 'OFL-1.1')
install='omacalc.install'
options=('!debug')
depends=(
'hicolor-icon-theme'
'qt6-base'
'qt6-declarative'
'xdg-desktop-portal'
)
makedepends=(
'gcc'
'make'
'qt6-base'
'qt6-declarative'
)
source=("$pkgname-$pkgver.tar.gz::https://github.com/omacom-io/omacalc/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('cfb406407bbddefd6fd9d77ed8d1ac1a3644b567df15ea26fe0a81f3a90ce4a9')
build() {
cd "$srcdir/$pkgname-$pkgver"
./bin/build
}
package() {
cd "$srcdir/$pkgname-$pkgver"
install -Dm755 build/omacalc "$pkgdir/usr/bin/omacalc"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 fonts/OFL.txt "$pkgdir/usr/share/licenses/$pkgname/OFL.txt"
install -Dm644 pkgbuild/omacalc.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/omacalc.svg"
install -Dm644 pkgbuild/omacalc.desktop "$pkgdir/usr/share/applications/omacalc.desktop"
}
+12
View File
@@ -0,0 +1,12 @@
post_install() {
command -v update-desktop-database >/dev/null 2>&1 && update-desktop-database -q
command -v gtk-update-icon-cache >/dev/null 2>&1 && gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}