From b4411da343b06e5e7a49d9d78ce68f25fafd7024 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Tue, 27 Mar 2018 21:01:47 +0000 Subject: cmark: dep of mkvtoolnix --- abs/extra/cmark/PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 abs/extra/cmark/PKGBUILD diff --git a/abs/extra/cmark/PKGBUILD b/abs/extra/cmark/PKGBUILD new file mode 100644 index 0000000..d73ca57 --- /dev/null +++ b/abs/extra/cmark/PKGBUILD @@ -0,0 +1,37 @@ +# $Id$ +# Maintainer: Felix Yan +# Contributor: Veeti Paananen + +pkgname=cmark +pkgver=0.28.3 +pkgrel=1 +pkgdesc="CommonMark parsing and rendering library and program in C" +arch=('x86_64') +url="https://github.com/jgm/cmark" +license=('custom:BSD2') +depends=('glibc') +makedepends=('cmake' 'python') +source=("$pkgname-$pkgver.tar.gz::https://github.com/jgm/cmark/archive/$pkgver.tar.gz") +sha512sums=('409105a3228a8ae22ba6acf95cd99bc9a2c20f8603aa0e803a33172eb6ef53f80f8f0262d2258b77f9fd6e1f2e9017a6c906b88f761e053c09ef88c9ffab7d29') + +prepare() { + mkdir -p build +} + +build() { + cd build + cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib ../cmark-$pkgver + make +} + +check() { + cd build + make test +} + +package() { + cd build + make install DESTDIR="$pkgdir" + + install -D -m 644 "$srcdir"/cmark-$pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING +} -- cgit v0.12