Date: Monday, October 22, 2018 @ 11:39:07 Author: felixonmars Revision: 398368
archrelease: copy trunk to community-staging-x86_64 Added: cmark-gfm/repos/community-staging-x86_64/ cmark-gfm/repos/community-staging-x86_64/PKGBUILD (from rev 398367, cmark-gfm/trunk/PKGBUILD) ----------+ PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) Copied: cmark-gfm/repos/community-staging-x86_64/PKGBUILD (from rev 398367, cmark-gfm/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-10-22 11:39:07 UTC (rev 398368) @@ -0,0 +1,36 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Veeti Paananen <veeti.paana...@rojekti.fi> + +pkgname=cmark-gfm +pkgver=0.28.3.gfm.17 +pkgrel=1 +pkgdesc="GitHub's fork of cmark, a CommonMark parsing and rendering library and program in C" +arch=('x86_64') +url="https://github.com/github/cmark" +license=('custom:BSD2') +depends=('glibc') +makedepends=('cmake' 'python') +source=("$pkgname-$pkgver.tar.gz::https://github.com/github/cmark/archive/$pkgver.tar.gz") +sha512sums=('654bdb5fc87b1dd10083ba8a0fef65449144699f912fdae65513a678b872e2fead698519be5dc4a87c8515aa2d2e3b1ff484148103262852dfc3a1095552f514') + +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 +}