summaryrefslogtreecommitdiffstats
path: root/lua/Pkgfile
blob: 80da627af970a92a2900bcad589f0c36d2bc4826 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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
release=1
source=(http://www.lua.org/ftp/$name-$version.tar.gz 
	lua-5.1.4-cflags.diff)

build() {
	cd $name-$version
	[ `uname -i` == "x86_64" ] && patch -Np1 -i ../lua-5.1.4-cflags.diff
	[ `uname -i` == "x86_64" ] && export CFLAGS="$CFLAGS -fPIC"

	make linux
	make INSTALL_TOP=$PKG/usr  install
	mv $PKG/usr/{man,share/man}
	rm -r $PKG/usr/share/lua
	install -D -m 0644 etc/lua.pc $PKG/usr/lib/pkgconfig/lua.pc
}