summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChocobo12019-04-27 18:23:18 +0800
committerChocobo12019-04-27 18:24:49 +0800
commit61a20a8d755bc4c9ce5387d5c5578324ea70696b (patch)
tree3fda6a7e2e4bfe01cbdc02c2197657ebac45b040
downloadaur-61a20a8d755bc4c9ce5387d5c5578324ea70696b.tar.gz
newpkg: cmark-git 0.29.0.r4.ga61c490-1
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD48
2 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c218715c87a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = cmark-git
+ pkgdesc = CommonMark parsing and rendering library
+ pkgver = 0.29.0.r4.ga61c490
+ pkgrel = 1
+ url = https://github.com/commonmark/cmark
+ arch = i686
+ arch = x86_64
+ license = BSD
+ license = custom
+ makedepends = git
+ makedepends = cmake
+ makedepends = python
+ depends = glibc
+ provides = cmark
+ conflicts = cmark
+ options = staticlibs
+ source = git+https://github.com/commonmark/cmark.git
+ sha256sums = SKIP
+
+pkgname = cmark-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f8cf5a4627f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+
+pkgname=cmark-git
+pkgver=0.29.0.r4.ga61c490
+pkgrel=1
+pkgdesc="CommonMark parsing and rendering library"
+arch=('i686' 'x86_64')
+url="https://github.com/commonmark/cmark"
+license=('BSD' 'custom')
+depends=('glibc')
+makedepends=('git' 'cmake' 'python')
+provides=('cmark')
+conflicts=('cmark')
+options=('staticlibs')
+source=("git+https://github.com/commonmark/cmark.git")
+sha256sums=('SKIP')
+
+
+pkgver() {
+ cd "cmark"
+
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "cmark"
+
+ mkdir -p "_build" && cd "_build"
+ cmake \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DCMAKE_INSTALL_LIBDIR="lib" \
+ ../
+ make
+}
+
+check() {
+ cd "cmark/_build"
+
+ make test
+}
+
+package() {
+ cd "cmark/"
+
+ make -C "_build" DESTDIR="$pkgdir" install
+ install -Dm644 "COPYING" "$pkgdir/usr/share/licenses/cmark/COPYING"
+}