summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0ec705c43569012ba26cbcbe85edc11783af1e33 (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
# Maintainer: kleintux <reg-archlinux AT klein DOT tuxli DOT ch> 

_pkgname=clp
pkgname="${_pkgname}-git"
pkgver=r68.8749f30
pkgrel=1
pkgdesc='writes input files to stdout with syntax highlighting'
arch=('x86_64' 'aarch64')
url="https://git.sr.ht/~eskin/clp"
license=('custom')
depends=('luajit' 'lua51-lpeg' 'lua51-luautf8')
makedepends=('git')
source=("git+${url}")
sha256sums=('SKIP')
conflicts=("${_pkgname}")

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

build() {
  cd "${_pkgname}"
  ./configure --prefix=/usr
  make
}

package() {
  cd "${_pkgname}"
  make MANPREFIX=/usr/share/man DESTDIR="${pkgdir}" install
  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}