[arch-commits] Commit in cmark-gfm/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sun Dec 9 21:09:31 UTC 2018


    Date: Sunday, December 9, 2018 @ 21:09:31
  Author: felixonmars
Revision: 413236

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 413235, cmark-gfm/trunk/PKGBUILD)

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Copied: cmark-gfm/repos/community-staging-x86_64/PKGBUILD (from rev 413235, cmark-gfm/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-12-09 21:09:31 UTC (rev 413236)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Veeti Paananen <veeti.paananen at rojekti.fi>
+
+pkgname=cmark-gfm
+pkgver=0.28.3.gfm.19
+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=('b077f73fe3a83389df272e6b37cd55ca1ae41a462911676e4a6309c0aeb8eb741479eeb4d30b6195890edf331019d143f7f1517bd8685dfc8a45955d5c4bd283')
+
+prepare() {
+  mkdir -p build
+}
+
+build() {
+  cd build
+  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib ../cmark-gfm-$pkgver
+  make
+}
+
+check() {
+  cd build
+  make test
+}
+
+package() {
+  cd build
+  make install DESTDIR="$pkgdir"
+
+  install -D -m 644 "$srcdir"/cmark-gfm-$pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}



More information about the arch-commits mailing list