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

_pkgname=gtkmdview
pkgname=${_pkgname}-git
pkgver=r9.e80a9b6
pkgrel=2
pkgdesc='A simple library that renders markdown as a GtkWidget for viewing.'
arch=('x86_64')
url='https://github.com/johan-bjareholt/gtkmdview/'
license=('GPL3')
depends=('md4c' 'gtk4')
makedepends=('meson' 'git')
source=("https://github.com/johan-bjareholt/${pkgname}/archive/refs/tags/${pkgver}.tar.gz")
source=("git+https://github.com/johan-bjareholt/${_pkgname}")
sha256sums=('SKIP')
conflicts=("${_pkgname}")

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

build() {
  arch-meson ${_pkgname} build
  meson compile -C build
}

check() {
  meson test -C build --print-errorlogs
}

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