- PKGBUILD url/source now point at this instance's releases. - Release uploads use the run's own ephemeral token instead of the GITEA_TOKEN secret. - The publish job also builds both architectures' packages (repack PKGBUILD, CARCH override) and uploads them to the instance Arch package registry (repository name: uhhm). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GLUwWE2KmFPzhKaf67tWbx
35 lines
1.3 KiB
Bash
35 lines
1.3 KiB
Bash
# Maintainer: Bendik Aagaard Lynghaug <bendik.lynghaug@gmail.com>
|
|
pkgname=cnats
|
|
pkgver=0.2.5
|
|
pkgrel=1
|
|
pkgdesc="Web chat over NATS subjects with Kanidm SSO (Leptos SSR)"
|
|
arch=('x86_64' 'aarch64')
|
|
url="https://project.uhhm.no/bl/cnats"
|
|
license=('MIT')
|
|
depends=('glibc' 'gcc-libs')
|
|
optdepends=(
|
|
'nats-server: local message bus'
|
|
'postgresql: local message history archive'
|
|
)
|
|
provides=('cnats')
|
|
conflicts=('cnats-git' 'cnats-bin')
|
|
backup=('etc/cnats/env')
|
|
source_x86_64=("cnats-v${pkgver}-x86_64.tar.gz::https://project.uhhm.no/bl/cnats/releases/download/v${pkgver}/cnats-v${pkgver}-x86_64.tar.gz")
|
|
source_aarch64=("cnats-v${pkgver}-aarch64.tar.gz::https://project.uhhm.no/bl/cnats/releases/download/v${pkgver}/cnats-v${pkgver}-aarch64.tar.gz")
|
|
sha256sums_x86_64=('SKIP')
|
|
sha256sums_aarch64=('SKIP')
|
|
|
|
package() {
|
|
install -Dm755 cnats "$pkgdir/usr/bin/cnats"
|
|
|
|
# Hydration wasm/js + css served by the binary (LEPTOS_SITE_ROOT).
|
|
install -dm755 "$pkgdir/usr/share/cnats"
|
|
cp -r site "$pkgdir/usr/share/cnats/site"
|
|
|
|
install -Dm644 cnats.service "$pkgdir/usr/lib/systemd/system/cnats.service"
|
|
install -Dm600 cnats.env "$pkgdir/etc/cnats/env"
|
|
|
|
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
|
|
}
|