summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ca7b2dc25decdf3bbfd0b6bc7dde085d70904275 (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: trilader <trilader@schroedingers-bit.net>
pkgname=termpaint-git
pkgver=r499.3823173
pkgrel=2
pkgdesc="low level terminal interface library"
arch=("x86_64")
url="https://github.com/termpaint/termpaint"
license=('Boost')
depends=()
makedepends=(meson git)
options=(!strip)
source=("git+https://github.com/termpaint/termpaint.git")
md5sums=("SKIP")

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

build() {
    arch-meson -Ddefault_library=both termpaint _build
    meson compile -C _build
}

check() {
    meson test -C _build
}

package() {
    DESTDIR="$pkgdir" meson install -C _build
}