From 9f3fb0289bb29085c87a9170739b4b55e711ec56 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Thu, 11 Dec 2014 20:24:36 +0100 Subject: lua53: update to release candidate 0 --- lua5.3/PKGBUILD | 43 +++++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 20 deletions(-) (limited to 'lua5.3/PKGBUILD') diff --git a/lua5.3/PKGBUILD b/lua5.3/PKGBUILD index f1bcc85..d4e237e 100644 --- a/lua5.3/PKGBUILD +++ b/lua5.3/PKGBUILD @@ -11,50 +11,53 @@ # pkgname=lua53 -pkgver=5.3.0_beta +pkgver=5.3.0_rc0 pkgrel=1 -pkgdesc='Powerful light-weight programming language designed for extending applications, beta release ofversion 5.3.0' +pkgdesc='Powerful light-weight programming language designed for extending applications, release candidate of version 5.3.0' 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-beta.tar.gz' +source=('http://www.lua.org/work/lua-5.3.0-rc0.tar.gz' 'liblua.so.patch' 'LICENSE' 'lua.pc') -sha512sums=('7d85365c4ea7802153e6dc96ef7a7ef17b51d549be2c5d08a290f346ea6a10f00b5379a31f5730c36e5778f2c6ab9f2ed03049a23444f3c0ede562ca066d7b6f' +sha512sums=('79c28d91c5240af7f8f3f65e6b9f1931d3fc635e31b212ae6299731b090cd48d169535d612b781c6fd755a73f9401648361fd9e394d8a52607a118c760a530fc' 'bcb85d5863685473dcff1e615cfbadaede09440e4fcab1d32ea1cd6fca543e4e549084901cc5df72089ef145e213a763c26570637c539b7689b6e4e5cd129941' '4f2dcdf727fa87cb1a89e8f9e678b6245b7af1722c74d4c04adc865745c80a0ce292fd5c18787fb3c00ec44bfa07a49ffed2fcb71008a84f4464933ab4bd3d38' 'c91d5e7b1468ec773a4863fd8f360e5379626668242b856605fab634d5aa003e247992f23a6f41b511481b5468bd644fcb18e66e6f1f2514688f5653f06d1186') 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 + declare -r dstdir="lua-${pkgver/_/-}" + mv "${dstdir%%-rc0}" "${dstdir}" + cd "${dstdir}" + 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 + make MYCFLAGS="${CFLAGS}" MYLDFLAGS="${LDFLAGS}" linux } package() { - cd "lua-${pkgver/_/-}" + declare -r dstdir="lua-${pkgver/_/-}" + cd "${dstdir}" 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_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" + 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.1 mv luac.1 luac5.3.1 } -- cgit v1.2.3