summaryrefslogtreecommitdiffstats
path: root/base/lua/Pkgfile
blob: 22ed2d716d461f0c39fa2321a59134069d35c5ca (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
# $Id: build,v 1.9 2008/08/30 20:36:55 linda Exp root $
# Description: A programming language designed for extending applications
# URL: http://www.lua.org
# Packager: Floreal Cabares, cabaflo at wanadoo dot fr
# Depends on:
# Run on:

name=lua
version=5.1.4
release=3
source=(http://www.lua.org/ftp/$name-$version.tar.gz 
	lua-5.1.4-patch-lua.patch
	lua-5.1.4-cflags.diff)

build() {
	cd $name-$version
	patch < $SRC/lua-5.1.4-patch-lua.patch -d src
	
	[ `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
	rm -rf $PKG/usr/share
	install -D -m 0644 etc/lua.pc $PKG/usr/lib/pkgconfig/lua.pc
}