[WIP] PKGBUILD to build and install knot on ArchLinux
archlinux aur pkgbuild

Actually add sample Caddyfile to package

Changed files
+12 -4
+4 -1
.SRCINFO
··· 1 1 pkgbase = tangled-knot-git 2 2 pkgdesc = Tangled knot — a code colaboration planform built on the AT protocol (development version) 3 - pkgver = 1.11.0.alpha.r22.ga8e82883 3 + pkgver = 1.11.0.alpha.r71.gae0185bd 4 4 pkgrel = 1 5 5 url = https://tangled.org/tangled.org/core 6 6 install = tangled-knot.install 7 7 arch = aarch64 8 8 arch = x86_64 9 9 license = MIT 10 + makedepends = git 10 11 makedepends = go 11 12 depends = git 12 13 depends = glibc ··· 20 21 source = openssh.conf 21 22 source = tmpfile.conf 22 23 source = sample-.knot.env 24 + source = sample-caddy.conf 23 25 source = sample-nginx.conf 26 + sha256sums = SKIP 24 27 sha256sums = SKIP 25 28 sha256sums = SKIP 26 29 sha256sums = SKIP
+8 -3
PKGBUILD
··· 4 4 5 5 _pkgname='tangled-knot' 6 6 pkgname="${_pkgname}-git" 7 - pkgver=1.11.0.alpha.r22.ga8e82883 7 + pkgver=1.11.0.alpha.r71.gae0185bd 8 8 pkgrel=1 9 9 pkgdesc='Tangled knot — a code colaboration planform built on the AT protocol (development version)' 10 10 arch=('aarch64' 'x86_64') ··· 12 12 license=('MIT') # SPDX-License-Identifier: MIT 13 13 provides=("$_pkgname") 14 14 conflicts=("${provides[@]}") 15 - makedepends=('go') 15 + makedepends=('git' 'go') 16 16 depends=('git' 'glibc' 'openssh') 17 17 optdepends=( 18 18 'caddy: webserver for reverse proxy' ··· 24 24 'openssh.conf' 25 25 'tmpfile.conf' 26 26 'sample-.knot.env' 27 + 'sample-caddy.conf' 27 28 'sample-nginx.conf' 28 29 ) 29 - sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP') 30 + sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP') 30 31 install="$_pkgname.install" 31 32 32 33 pkgver() { ··· 91 92 92 93 # Sample configuration files 93 94 install -vDm0644 -t "$pkgdir/usr/share/doc/$pkgname" sample-*.* 95 + 96 + for _dir in doc licenses; do 97 + cd "$pkgdir/usr/share/$_dir" && ln -vrsf "$pkgname" "$_pkgname" 98 + done 94 99 } 95 100 96 101 # eof