Files
omarchy-pkgs/pkgbuilds/omacalc/PKGBUILD
T
2026-08-01 19:25:25 -07:00

41 lines
1.1 KiB
Bash

# 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"
}