summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 911fe4386987a3a09d5eeff02d8a3818c0726424 (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
34
# Maintainer: Nakidai <plaza521 at inbox dot ru>
pkgname=hilex-git
pkgdesc="syntax highlighter"
url="https://causal.agency/bin/hilex.html"
license=("AGPL-3.0-or-later")

pkgver=r2462.c8f0df1
pkgrel=1

arch=("x86_64")
depends=("glibc")
makedepends=("gcc" "git" "flex")

source=(
    "$pkgname::git+https://git.causal.agency/src#branch=master"
)
sha256sums=('SKIP')

pkgver() {
    cd "$pkgname"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

build() {
    cd "$pkgname"/bin
    make clean hilex
}

package() {
    cd "$pkgname"/bin
    install -d "$pkgdir"/usr/bin "$pkgdir"/usr/share/man/man1
    install hilex  "$pkgdir"/usr/bin/
    install -m644 man1/hilex.1 "$pkgdir"/usr/share/man/man1
}