blob: ff2edefec09aeaa3c5bad180f705d8e72c3f5fd1 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_pkgname=lyaml
pkgname=lua-$_pkgname
pkgver=6.1.3
pkgrel=0
pkgdesc="LibYAML binding for Lua"
url="https://github.com/gvvaughan/lyaml"
arch="all"
license="MIT"
depends=""
makedepends="yaml-dev"
subpackages=""
replaces="lua-yaml"
source="$_pkgname-$pkgver.tar.gz::https://github.com/gvvaughan/lyaml/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
_luaversions="5.1 5.2 5.3"
for _v in $_luaversions; do
makedepends="$makedepends lua$_v-dev"
subpackages="$subpackages lua$_v-$_pkgname:_subpackage"
done
build() {
local lver; for lver in $_luaversions; do
msg "Building for Lua $lver..."
cp -r "$builddir" "$srcdir"/build-$lver
cd "$srcdir"/build-$lver
lua$lver build-aux/luke
done
}
package() {
mkdir -p "$pkgdir"
}
_subpackage() {
local lver="${subpkgname%-lyaml}"
lver=${lver#lua}
pkgdesc="$pkgdesc $lver"
depends="lua$lver"
install_if="$pkgname=$pkgver-r$pkgrel lua$lver"
cd "$srcdir"/build-$lver
lua$lver build-aux/luke PREFIX="$subpkgdir"/usr install
rm -Rf "$subpkgdir"/usr/share/doc
}
sha512sums="aa101680b181d733c8648e0c800aa381c426483dc1ff59b80a6d2a3c7a058aa27e2783849da0aaaaf323c01dc891626ff194c3a86937b47ab1a5418e89128be4 lyaml-6.1.3.tar.gz"
|