From b0f53efff96249ec7941122567c9d6c977df946b Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Wed, 10 Jul 2013 11:48:29 +0200 Subject: add lua 5.3.0 work build --- lua5.3/PKGBUILD | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 lua5.3/PKGBUILD (limited to 'lua5.3/PKGBUILD') diff --git a/lua5.3/PKGBUILD b/lua5.3/PKGBUILD new file mode 100644 index 0000000..d6ec1e1 --- /dev/null +++ b/lua5.3/PKGBUILD @@ -0,0 +1,56 @@ +# Maintainer: Philipp Gesang +# Derived from the Lua 5.2 and 5.1 PKGBUILDs in extra which lists +# these guys as contributors: +# Contributor: Sébastien Luttringer +# Contributor: Juergen Hoetzel +# Contributor: Damir Perisa + +pkgname=lua53 +pkgver=5.3.0_work1 +pkgrel=1 +pkgdesc='Powerful light-weight programming language designed for extending applications, version 5.3 working draft' +arch=('i686' 'x86_64') +url='http://www.lua.org/' +depends=('readline') +license=('MIT') +options=('!makeflags' '!emptydirs') +source=('http://www.lua.org/work/lua-5.3.0-work1.tar.gz' + 'liblua.so.patch' + 'LICENSE' + 'lua.pc') +md5sums=('d4053ee55741eab5ecd7061326577586' + '42ae5d526cc73695ee05ca8db6b19754' + '5d236d27128ef36bbc8f228faaf76f7f' + '3369fab35575e718eae71884674ba387') + +build() { + cd "lua-${pkgver/_/-}" + patch -p1 -i "$srcdir/liblua.so.patch" + export CFLAGS="$CFLAGS -fPIC" + sed "s/%VER%/${pkgver%.*}/g;s/%REL%/$pkgver/g" ../lua.pc > lua.pc + sed -r -e '/^LUA_(SO|A|T)=/ s/lua/lua5.3/' -e '/^LUAC_T=/ s/luac/luac5.3/' -i src/Makefile + make MYCFLAGS="$CFLAGS" MYLDFLAGS="$LDFLAGS" linux +} + +package() { + cd "lua-${pkgver/_/-}" + make \ + TO_BIN="lua5.3 luac5.3" \ + TO_LIB="liblua5.3.a liblua5.3.so liblua5.3.so.5.3 liblua5.3.so.5.3.0" \ + INSTALL_DATA="cp -d" \ + INSTALL_TOP="$pkgdir/usr" \ + INSTALL_INC="$pkgdir/usr/include/lua5.3" \ + INSTALL_MAN="$pkgdir/usr/share/man/man1" \ + install + install -Dm644 lua.pc "$pkgdir/usr/lib/pkgconfig/lua5.3.pc" + install -d "$pkgdir/usr/share/doc/lua5.3" + install -m644 doc/*.{gif,png,css,html} "$pkgdir/usr/share/doc/lua5.3" + install -D -m644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + ln -s liblua5.3.so "$pkgdir/usr/lib/liblua.so.5.3" + ln -s liblua5.3.so "$pkgdir/usr/lib/liblua.so.$pkgver" + cd "$pkgdir/usr/share/man/man1" + mv lua.1 lua5.3.0 + mv luac.1 luac5.3.0 +} + +# vim:set ts=2 sw=2 et: -- cgit v1.2.3 From bea638ffdc05d4fcce002dea72ec09fc0d5d4f70 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Thu, 11 Jul 2013 18:54:21 +0200 Subject: fix lua53 man page file names (thanks, GinoCorazzi\!) --- lua5.3/PKGBUILD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua5.3/PKGBUILD') diff --git a/lua5.3/PKGBUILD b/lua5.3/PKGBUILD index d6ec1e1..666a84e 100644 --- a/lua5.3/PKGBUILD +++ b/lua5.3/PKGBUILD @@ -49,8 +49,8 @@ package() { ln -s liblua5.3.so "$pkgdir/usr/lib/liblua.so.5.3" ln -s liblua5.3.so "$pkgdir/usr/lib/liblua.so.$pkgver" cd "$pkgdir/usr/share/man/man1" - mv lua.1 lua5.3.0 - mv luac.1 luac5.3.0 + mv lua.1 lua5.3.1 + mv luac.1 luac5.3.1 } # vim:set ts=2 sw=2 et: -- cgit v1.2.3 From 66d667cd8b58d877fed04bc5f3d67938501a8277 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Thu, 11 Jul 2013 18:57:38 +0200 Subject: incr Lua53-work version --- lua5.3/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua5.3/PKGBUILD') diff --git a/lua5.3/PKGBUILD b/lua5.3/PKGBUILD index 666a84e..6f44922 100644 --- a/lua5.3/PKGBUILD +++ b/lua5.3/PKGBUILD @@ -7,7 +7,7 @@ pkgname=lua53 pkgver=5.3.0_work1 -pkgrel=1 +pkgrel=2 pkgdesc='Powerful light-weight programming language designed for extending applications, version 5.3 working draft' arch=('i686' 'x86_64') url='http://www.lua.org/' -- cgit v1.2.3