From 300043206d399237b3b650d40fa3069144f36946 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 3 Feb 2025 16:01:28 +0100 Subject: hurrycurry website --- hurrycurry-website-git/PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 hurrycurry-website-git/PKGBUILD (limited to 'hurrycurry-website-git') diff --git a/hurrycurry-website-git/PKGBUILD b/hurrycurry-website-git/PKGBUILD new file mode 100644 index 0000000..3efae24 --- /dev/null +++ b/hurrycurry-website-git/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: metamuffin + +pkgname=hurrycurry-website-git +pkgver=r21.2d1d0e7 +pkgrel=3 +pkgdesc="Hurrycurry website files" +arch=('any') +url="https://codeberg.org/hurrycurry/website" +license=('AGPL3') +conflics=('hurrycurry-website') +provides=('hurrycurry-website') +makedepends=('python') +source=("git+https://codeberg.org/hurrycurry/website.git" + "git+https://codeberg.org/hurrycurry/hurrycurry-dist-extra.git") +sha256sums=("SKIP" + "SKIP") + +pkgver() { + cd "website" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} +prepare() { + rm -rf website/dist-extra + cp -r hurrycurry-dist-extra website/dist-extra +} +build() { + cd "website" + make +} +package() { + install -dm755 "$pkgdir/usr/share/hurrycurry/website" + install -Dm664 -t $pkgdir/usr/share/hurrycurry/website website/*.{png,webp,svg,woff2,html,css} +} -- cgit v1.2.3-70-g09d2