diff options
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 48 |
2 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c218715c87ac --- /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 000000000000..f8cf5a4627f8 --- /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" +} |