summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Maclennan2020-05-14 22:13:57 +0300
committerCaleb Maclennan2020-05-14 22:13:57 +0300
commit020aac9ef12e53f22250720d0d3070e0ee7d00d0 (patch)
treeced7bac2284f914b666256abfe95881f4f9bb505
downloadaur-020aac9ef12e53f22250720d0d3070e0ee7d00d0.tar.gz
Initial upload: lua-lcmark-git 0.29.0.5.r0.g320a347-1
-rw-r--r--.SRCINFO50
-rw-r--r--PKGBUILD69
2 files changed, 119 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e4613d35b3f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,50 @@
+pkgbase = lua-lcmark-git
+ pkgdesc = A higher level Lua interface exposing lua-cmark features
+ pkgver = 0.29.0.5.r0.g320a347
+ pkgrel = 1
+ url = https://github.com/jgm/lcmark
+ arch = x86_64
+ arch = i686
+ license = BSD
+ makedepends = git
+ makedepends = lua
+ makedepends = lua52
+ makedepends = lua51
+ makedepends = luarocks
+ source = git+https://github.com/jgm/lcmark.git#branch=master
+ sha256sums = SKIP
+
+pkgname = lua-lcmark-git
+ depends = lua
+ depends = lua-cmark-git
+ depends = lua-lpeg
+ depends = lua-optparse
+ depends = lua-yaml
+ provides = lua-lcmark
+ conflicts = lua-lcmark
+
+pkgname = lua52-lcmark-git
+ depends = lua52
+ depends = lua52-cmark-git
+ depends = lua52-lpeg
+ depends = lua52-optparse
+ depends = lua52-yaml
+ provides = lua52-lcmark
+ conflicts = lua52-lcmark
+
+pkgname = lua51-lcmark-git
+ depends = lua51
+ depends = lua51-cmark-git
+ depends = lua51-lpeg
+ depends = lua51-optparse
+ depends = lua51-yaml
+ provides = lua51-lcmark
+ conflicts = lua51-lcmark
+
+pkgname = lcmark-git
+ pkgdesc = CLI interface for lua-lcmark
+ depends = lua
+ depends = lua-lcmark-git
+ provides = lcmark
+ conflicts = lcmark
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..42bff2bce00
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,69 @@
+# Maintainer: Caleb Maclennan <caleb@alerque.com>
+
+_rockname=lcmark
+_project=$_rockname
+pkgname=("lua-$_rockname-git" "lua52-$_rockname-git" "lua51-$_rockname-git" "$_rockname-git")
+pkgver=0.29.0.5.r0.g320a347
+_branch='master'
+_rockrel=5
+pkgrel=1
+pkgdesc='A higher level Lua interface exposing lua-cmark features'
+arch=('x86_64' 'i686')
+url="https://github.com/jgm/$_project"
+license=('BSD')
+_lua_deps=('cmark-git' 'lpeg' 'optparse' 'yaml')
+makedepends=('git' 'lua' 'lua52' 'lua51' 'luarocks')
+source=("git+$url.git#branch=$_branch")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$_project"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cp -a "$_project"{,-5.1}
+ cp -a "$_project"{,-5.2}
+ cp -a "$_project"{,-5.3}
+ cp -a "$_project"{,-5.3cli}
+}
+
+_package_helper() {
+ cd "$_project-$1$2"
+ sed -i Makefile \
+ -e "s!--local make!--lua-version='$1' --tree='$pkgdir/usr/' make --deps-mode=none --no-manifest!"
+ make rock -B
+ case $pkgname in
+ lua*) rm -rf "$pkgdir/usr/bin" ;;
+ *) rm -rf "$pkgdir/usr/"{lib,share} ;;
+ esac
+}
+
+package_lua-lcmark-git() {
+ depends=('lua' "${_lua_deps[@]/#/lua-}")
+ provides=("${pkgname/-git}")
+ conflicts=("${pkgname/-git}")
+ _package_helper 5.3
+}
+
+package_lua52-lcmark-git() {
+ depends=('lua52' "${_lua_deps[@]/#/lua52-}")
+ provides=("${pkgname/-git}")
+ conflicts=("${pkgname/-git}")
+ _package_helper 5.2
+}
+
+package_lua51-lcmark-git() {
+ depends=('lua51' "${_lua_deps[@]/#/lua51-}")
+ provides=("${pkgname/-git}")
+ conflicts=("${pkgname/-git}")
+ _package_helper 5.1
+}
+
+package_lcmark-git() {
+ pkgdesc="CLI interface for lua-lcmark"
+ depends=('lua' "$pkgbase")
+ provides=("${pkgname/-git}")
+ conflicts=("${pkgname/-git}")
+ _package_helper 5.3 cli
+}