summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dee3d8eb21b0a4af603a2ec04a34d0f0d8690529 (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
# Maintainer: Conrad Hoffmann <ch@bitfehler.net>
pkgname=cmos
pkgver=1.1
pkgrel=5
pkgdesc='Small markdown renderer based on CommonMark libcmark'
arch=(x86_64)
url='https://sr.ht/~bitfehler/cmos'
license=(MIT)
depends=(
  'libunistring'
  'cmark'
  'source-highlight'
)
makedepends=(git meson ninja boost)
provides=('cmos')
conflicts=('cmos-git')

source=("$pkgname-$pkgver.tar.gz::https://git.sr.ht/~bitfehler/cmos/archive/v${pkgver}.tar.gz")
sha256sums=('580cf955bd63f676f25d1c6d4bbfdd25fe69d9788bc5b514d5f02e8579d06cd6')

build() {
  mkdir -p build
  arch-meson build "${pkgname}-v${pkgver}"
  ninja -C build
}

package() {
  DESTDIR="$pkgdir" ninja -C build install
  cd "${pkgname}-v${pkgver}"
  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}

# vim: ts=2 sw=2 et