# Maintainer: metamuffin pkgname=hurrycurry-website-git pkgver=r24.b37ea4a pkgrel=1 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} }