Files
omarchy-pkgs/pkgbuilds/once-bin/PKGBUILD
T

33 lines
1.3 KiB
Bash

# Maintainer: Kevin McConnell
pkgname=once-bin
pkgver=0.3.0
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' '!debug')
_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=('0e4c385ee3da47eeee0827c5db2977b1440548f98477b040845a593f0062ad0f')
sha256sums_aarch64=('5e7cc49ff24cf0b9f45393f9895dd9d502a901100508c91fc137ede45b8d8467')
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"
}