45 lines
1.6 KiB
Text
45 lines
1.6 KiB
Text
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||
pkgname=codeberg-pages-server
|
||
pkgver=5.1
|
||
pkgrel=0
|
||
pkgdesc="The Codeberg Pages Server – with custom domain support, per-repo pages using the "pages" branch, caching and more."
|
||
url="https://codeberg.org/Codeberg/pages-server"
|
||
arch="all"
|
||
license="EUPL-1.2"
|
||
depends="nginx"
|
||
makedepends="go just"
|
||
# tests disabled for now
|
||
options="!check"
|
||
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-install"
|
||
source="
|
||
$pkgname-$pkgver.tar.gz::https://codeberg.org/Codeberg/pages-server/archive/v$pkgver.tar.gz
|
||
codeberg-pages-server.openrc
|
||
upgrade-go-sqlite3-to-1.14.19.patch
|
||
"
|
||
builddir="$srcdir/"pages-server
|
||
subpackages="$pkgname-openrc"
|
||
pkgusers="git"
|
||
pkggroups="www-data"
|
||
|
||
export GOPATH=$srcdir/go
|
||
export GOCACHE=$srcdir/go-build
|
||
export GOTMPDIR=$srcdir
|
||
|
||
build() {
|
||
just build
|
||
}
|
||
|
||
package() {
|
||
msg "Packaging $pkgname"
|
||
install -Dm755 "$builddir"/build/codeberg-pages-server "$pkgdir"/usr/bin/codeberg-pages-server
|
||
|
||
install -Dm755 "$srcdir"/$pkgname.openrc \
|
||
"$pkgdir"/etc/init.d/$pkgname
|
||
}
|
||
|
||
sha512sums="
|
||
55a1dd5ed0f1cb2aaad1066eca8bfbd1d537169ed3712c748163ebff64edc45d05ac1f6f062433e232e2638a790232438282f96dd7410eb4cbaff7208f5f2427 codeberg-pages-server-5.1.tar.gz
|
||
4defb4fe3a4230f4aa517fbecd5e5b8bcef2a64e1b40615660ae9eec33597310a09df5e126f4d39ce7764bd1716c0a7040637699135c103cbc1879593c6c06f1 codeberg-pages-server.openrc
|
||
895f1c8d22fcf1d5491a6fe0ce5d93201f83b6dd5fc81b24016b609988fb6c66fdde75bb3830f385a5c83d96366ca3a5f4f9524f52058b6c5dfd8b80d14bac5b upgrade-go-sqlite3-to-1.14.19.patch
|
||
"
|