summaryrefslogtreecommitdiffstats
path: root/lua/Pkgfile
blob: 6246024b46176fc78232e42198d29457147b7468 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Description: Langage de programmation léger.
# URL: http://www.lua.org
# Packager: Floreal Cabares, cabaflo at wanadoo dot fr
# Depends on:
# Run on:

name=lua
#version=5.1.5
version=5.2.0
release=1
source=(http://www.lua.org/ftp/$name-$version.tar.gz 
	lua.diff)

build() {
	cd $name-$version
	patch -p1 < ../lua.diff
	[[ "`uname -m`" == "x86_64" ]] && make MYCFLAGS="-fPIC" linux || make linux
	make INSTALL_TOP=$PKG/usr  install
	mv $PKG/usr/{man,share/man}
	make pc > lua.pc
	install -D -m 0644 lua.pc $PKG/usr/lib/pkgconfig/lua.pc
}