blob: cbab8bf1861eebc24b363b9b257926d9eb0f1ac3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
_rockname=lcmark
_project=$_rockname
pkgname=("lua-$_rockname-git" "lua53-$_rockname-git" "lua52-$_rockname-git" "lua51-$_rockname-git" "$_rockname-git")
pkgver=0.29.0.5.r0.g320a347
_branch='master'
_rockrel=5
pkgrel=2
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' 'lua53' '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.4}
cp -a "$_project"{,-5.4cli}
}
_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.4
}
package_lua53-lcmark-git() {
depends=('lua53' "${_lua_deps[@]/#/lua53-}")
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.4 cli
}
|