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

Felix Yan felixonmars at archlinux.org
Tue Apr 9 15:21:17 UTC 2019


    Date: Tuesday, April 9, 2019 @ 15:21:16
  Author: felixonmars
Revision: 450628

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

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

Copied: cmark-gfm/repos/community-staging-x86_64/PKGBUILD (from rev 450627, cmark-gfm/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-04-09 15:21:16 UTC (rev 450628)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Veeti Paananen <veeti.paananen at rojekti.fi>
+
+pkgname=cmark-gfm
+pkgver=0.29.0.gfm.0
+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=('54e396e035a43e4d0c86fa7f1c48a6a1283c0caaabdbc56dfcecee92e89e69f6d2e016ae2d9cf4f40258a6455fba7b813c1c6e6d37e53d33a381088ccbc5673e')
+
+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