Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
45 lines
1.3 KiB
Bash
45 lines
1.3 KiB
Bash
# Maintainer: David Heinemeier Hansson <david@hey.com>
|
|
|
|
pkgname=omacalc
|
|
pkgver=0.2.2
|
|
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"
|
|
'omacalc.desktop'
|
|
'omacalc.svg')
|
|
sha256sums=('a42b39cd5a62c83f6667060da19c9bcc5dd8469ce69e48f19394b71322b9cba4'
|
|
'a8697a8606ab2ff6323e2923a835b1d3312e03f20614b71b1d5db57c84c93306'
|
|
'a6366f7167e657dd3be9c129a533fccc007dfb644db505f07068ad5a5986d34d')
|
|
|
|
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 "$srcdir/omacalc.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/omacalc.svg"
|
|
install -Dm644 "$srcdir/omacalc.desktop" "$pkgdir/usr/share/applications/omacalc.desktop"
|
|
}
|