blob: 292a4688d7d206ec4ef69f0b49191b630a96b7e7 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua
pkgver=5.1.5
pkgrel=3
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
}
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
}
|