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

Felix Yan felixonmars at archlinux.org
Wed Mar 20 09:00:06 UTC 2019


    Date: Wednesday, March 20, 2019 @ 09:00:02
  Author: felixonmars
Revision: 442844

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

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

Copied: cmark-gfm/repos/community-staging-x86_64/PKGBUILD (from rev 442843, cmark-gfm/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-03-20 09:00:02 UTC (rev 442844)
@@ -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.20
+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=('271d50bfdd9ec385870d5d9d87000c0a29f8008aa175e0f39f227dd0a67fa7e8ce3be8d5c4281d80f0fba2b9e0962ca981f711cc3cf98b8baf4d0c35bdd9624d')
+
+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