summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5b6ad6894a8682df83ee3c88afc1974c3661ac41 (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
# Maintainer: ZeroDegress <zerodegress@outlook.com>

_pkgname=html-greet
pkgname=${_pkgname}-git
pkgver=0.0.0.r29.f34c770
pkgrel=2
pkgdesc='Web based greeter for greetd'
url="https://github.com/HumXC/html-greet"
arch=('x86_64')
license=('custom')
depends=('greetd' 'webkit2gtk')
makedepends=('wails' 'go')
conflicts=('html-greet')
provides=('html-greet')
source=("${_pkgname}::git+https://github.com/HumXC/html-greet.git")
sha256sums=('SKIP')

pkgver() {
    cd "${srcdir}/${_pkgname}"
    _revision=$(printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)")
    echo "0.0.0.${_revision}"
}

build() {
    cd "${srcdir}"/${_pkgname}
    ./build.sh
}

package() {
    install -D -m755 "${srcdir}"/"${_pkgname}"/html-greet "${pkgdir}"/usr/bin/html-greet
}