summaryrefslogtreecommitdiff
path: root/hurrycurry-website-git/PKGBUILD
blob: 5b39945ee73e854b6505827c12f6e344f0683347 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: metamuffin <metamuffin@disroot.org>

pkgname=hurrycurry-website-git
pkgver=r29.b9d6cf0
pkgrel=2
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"
    cp -r website/* "$pkgdir/usr/share/hurrycurry/website"
}