aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua/APKBUILD
blob: 5b9f45d7bc74756028172de8c1c8b17c2c416f88 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua
pkgver=5.1.5
pkgrel=4
pkgdesc="A powerful light-weight programming language designed for extending applications."
url="http://www.lua.org/"
arch="noarch"
license="MIT"
depends="lua5.1"
makedepends="lua5.1-dev"
subpackages="$pkgname-dev $pkgname-doc"
source=""

build() {
	return 0
}

package() {
	mkdir -p "$pkgdir"/usr/bin
	ln -s lua5.1 "$pkgdir"/usr/bin/lua
	ln -s luac5.1 "$pkgdir"/usr/bin/luac
}

dev() {
	depends="lua5.1-dev"
	mkdir -p "$subpkgdir"/usr/lib/pkgconfig
	ln -s lua5.1.pc "$subpkgdir"/usr/lib/pkgconfig/lua.pc
}

doc() {
	depends="lua5.2-doc"
	mkdir -p "$subpkgdir"/usr/share/man/man1
	ln -s lua5.1.1 "$subpkgdir"/usr/share/man/man1/lua.1
	ln -s luac5.1.1 "$subpkgdir"/usr/share/man/man1/luac.1
}