summaryrefslogtreecommitdiff
path: root/lua/Pkgfile
diff options
context:
space:
mode:
authorDanny Rawlins <monster.romster@gmail.com>2014-02-17 13:03:38 +1100
committerDanny Rawlins <monster.romster@gmail.com>2014-02-17 13:03:38 +1100
commit5214f2f86fb9a5c4288d39722654c25b2fa94614 (patch)
tree82a99409407ae5175d07f136a4d7542ca1113ce8 /lua/Pkgfile
parentf9aec5cd7dccd9b6e8e4e714a31fbec92f6d636d (diff)
downloadopt-5214f2f86fb9a5c4288d39722654c25b2fa94614.tar.gz
opt-5214f2f86fb9a5c4288d39722654c25b2fa94614.tar.xz
lua: 5.2.2 -> 5.2.3
Diffstat (limited to 'lua/Pkgfile')
-rw-r--r--lua/Pkgfile18
1 files changed, 11 insertions, 7 deletions
diff --git a/lua/Pkgfile b/lua/Pkgfile
index a731338c3..9be590f38 100644
--- a/lua/Pkgfile
+++ b/lua/Pkgfile
@@ -5,20 +5,24 @@
# Depends on: readline
name=lua
-version=5.2.2
+version=5.2.3
release=1
source=(http://www.lua.org/ftp/$name-$version.tar.gz
- $name.diff)
+ liblua.so.patch lua.pc)
build() {
cd $name-$version
- patch -Np1 -i $SRC/$name.diff
+ patch -p 1 -i $SRC/liblua.so.patch
export CFLAGS="$CFLAGS -fPIC"
- make linux
- make INSTALL_TOP=$PKG/usr install
+ make MYCFLAGS="$CFLAGS" MYLDFLAGS="$LDFLAGS" linux
- make pc > lua.pc
- install -D -m 0644 lua.pc $PKG/usr/lib/pkgconfig/lua.pc
+ make \
+ TO_LIB='liblua.a liblua.so liblua.so.5.2 liblua.so.5.2.3' \
+ INSTALL_TOP=$PKG/usr install
+
+ #make pc > lua.pc
+ sed "s/%VER%/${version%.*}/g;s/%REL%/$version/g" $SRC/lua.pc > lua.pc
+ install -m 0644 -D lua.pc $PKG/usr/lib/pkgconfig/lua.pc
}

Generated by cgit