summaryrefslogtreecommitdiff
path: root/lua/Pkgfile
blob: 8f7d7a5d25ee17289b94f003f04d3ab348bae617 (plain)
    1 # Description: A programming language designed for extending applications.
    2 # URL: http://www.lua.org/
    3 # Maintainer: Danny Rawlins, monster dot romster at gmail dot com
    4 # Packager: Tilman Sauerbeck, tilman at crux dot nu
    5 # Depends on: readline
    6 
    7 name=lua
    8 version=5.2.3
    9 release=2
   10 source=(http://www.lua.org/ftp/$name-$version.tar.gz
   11 	liblua.so.patch lua.pc)
   12 
   13 build() {
   14 	cd $name-$version
   15 
   16 	patch -p 1 -i $SRC/liblua.so.patch
   17 	export CFLAGS="$CFLAGS -fPIC"
   18 
   19 	make MYCFLAGS="$CFLAGS" MYLDFLAGS="$LDFLAGS" linux
   20 
   21 	make \
   22 		TO_LIB="liblua.a liblua.so.$version" \
   23 		INSTALL_TOP=$PKG/usr install
   24 
   25 	ln -sf liblua.so.$version $PKG/usr/lib/liblua.so.${version:0:3}
   26 	ln -sf liblua.so.${version:0:3} $PKG/usr/lib/liblua.so
   27 
   28 	#make pc > lua.pc
   29 	sed "s/%VER%/${version%.*}/g;s/%REL%/$version/g" $SRC/lua.pc > lua.pc
   30 	install -m 0644 -D lua.pc $PKG/usr/lib/pkgconfig/lua.pc
   31 }

Generated by cgit