Files
omarchy-pkgs/pkgbuilds/once-bin/PKGBUILD
T
2026-05-08 01:04:51 -04:00

33 lines
1.3 KiB
Bash

# Maintainer: Kevin McConnell
pkgname=once-bin
pkgver=0.1.10
pkgrel=1
pkgdesc='CLI/TUI for installing and managing self-hosted web applications'
arch=('x86_64' 'aarch64')
url='https://github.com/basecamp/once'
license=('MIT')
depends=('docker')
provides=('once')
conflicts=('once')
install=once.install
options=('!strip')
_arch_x86_64=amd64
_arch_aarch64=arm64
source_x86_64=("once-${pkgver}-x86_64::${url}/releases/download/v${pkgver}/once-linux-${_arch_x86_64}")
source_aarch64=("once-${pkgver}-aarch64::${url}/releases/download/v${pkgver}/once-linux-${_arch_aarch64}")
source=("MIT-LICENSE-${pkgver}::https://raw.githubusercontent.com/basecamp/once/v${pkgver}/MIT-LICENSE"
"once-background.service")
sha256sums=('fa0d1454375cbc7701bc13d916c3ae71e613b8ae718321641e678e09409393c4'
'aa314fe79677eb5f120fcc3d4c42007a93ff7b1ef917382c0c1fdca5633ad46a')
sha256sums_x86_64=('a153d298edad63c622c416fb694370892b7d135cf2213ed0d0586f05d560aa05')
sha256sums_aarch64=('65d88f52e02f0d1e3f7aa09abfb6d68936126484acd4442ae993761aa002771e')
package() {
install -Dm755 "once-${pkgver}-${CARCH}" "${pkgdir}/usr/bin/once"
install -Dm644 "MIT-LICENSE-${pkgver}" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 once-background.service "${pkgdir}/usr/lib/systemd/system/once-background.service"
}