summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Maclennan2020-05-14 17:03:56 +0300
committerCaleb Maclennan2020-05-14 17:03:56 +0300
commit4d575ef06db45263762772c4f26be678a3b650c7 (patch)
tree34af8ec7648823c3145fad1b64d1f087624acf8a
downloadaur-4d575ef06db45263762772c4f26be678a3b650c7.tar.gz
Initial upload: lua-cmark 0.29.0-1
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD43
2 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7bba5529d17
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = lua-cmark
+ pkgdesc = Lua wrapper for libcmark, CommonMark Markdown parsing and rendering library
+ pkgver = 0.29.0
+ pkgrel = 1
+ url = https://github.com/jgm/cmark-lua
+ arch = x86_64
+ arch = i686
+ license = BSD
+ makedepends = lua
+ makedepends = lua52
+ makedepends = lua51
+ makedepends = luarocks
+ source = cmark-0.29.0.tar.gz::https://github.com/jgm/cmark-lua/archive/0.29.0.tar.gz
+ sha256sums = 44965157b8c306324547fd75938fb97ff958f443219b4611d6823dd1daa1d6e2
+
+pkgname = lua-cmark
+ depends = lua
+
+pkgname = lua52-cmark
+ depends = lua52
+
+pkgname = lua51-cmark
+ depends = lua51
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..89abbf02e89
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Caleb Maclennan <caleb@alerque.com>
+
+_rockname=cmark
+_project=$_rockname-lua
+pkgname=("lua-$_rockname" "lua52-$_rockname" "lua51-$_rockname")
+pkgver=0.29.0
+_rockrel=1
+pkgrel=1
+pkgdesc='Lua wrapper for libcmark, CommonMark Markdown parsing and rendering library'
+arch=('x86_64' 'i686')
+url="https://github.com/jgm/$_project"
+license=('BSD')
+makedepends=('lua' 'lua52' 'lua51' 'luarocks')
+source=("$_rockname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha256sums=('44965157b8c306324547fd75938fb97ff958f443219b4611d6823dd1daa1d6e2')
+
+prepare() {
+ cp -a "$_project-$pkgver"{,-5.1}
+ cp -a "$_project-$pkgver"{,-5.2}
+ cp -a "$_project-$pkgver"{,-5.3}
+}
+
+_package_helper() {
+ cd "$_project-$pkgver-$1"
+ sed -i Makefile \
+ -e "s!--local make!--lua-version='$1' --tree='$pkgdir/usr/' make --deps-mode=none --no-manifest!"
+ make rock
+}
+
+package_lua-cmark() {
+ depends=('lua')
+ _package_helper 5.3
+}
+
+package_lua52-cmark() {
+ depends=('lua52')
+ _package_helper 5.2
+}
+
+package_lua51-cmark() {
+ depends=('lua51')
+ _package_helper 5.1
+}