summaryrefslogtreecommitdiff
path: root/extra/lua
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2013-12-27 23:55:53 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2013-12-27 23:55:53 +0000
commit65eeff79fff8a1bfdf67ca51d147384f46f4d5c0 (patch)
treefbfdff322b28d9a3c37e6e31c94caf1d8e48dac1 /extra/lua
parentd53c44f055929b18d7d1b25f8367ee5836c435fc (diff)
Fri Dec 27 23:54:04 UTC 2013
Diffstat (limited to 'extra/lua')
-rw-r--r--extra/lua/PKGBUILD40
1 files changed, 24 insertions, 16 deletions
diff --git a/extra/lua/PKGBUILD b/extra/lua/PKGBUILD
index 571cd7894..ec990366b 100644
--- a/extra/lua/PKGBUILD
+++ b/extra/lua/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 181843 2013-04-04 12:42:25Z bpiotrowski $
+# $Id: PKGBUILD 201274 2013-12-07 13:31:55Z bpiotrowski $
# Maintainer: Sébastien Luttringer <seblu@archlinux.org>
# Contributor: Juergen Hoetzel <juergen@archlinux.org>
# Contributor: Damir Perisa <damir.perisa@bluewin.ch>
pkgname=lua
-pkgver=5.2.2
+pkgver=5.2.3
pkgrel=1
pkgdesc='Powerful light-weight programming language designed for extending applications'
arch=('i686' 'x86_64')
@@ -12,34 +12,42 @@ url='http://www.lua.org/'
depends=('readline')
license=('MIT')
options=('!makeflags' '!emptydirs')
-source=("http://www.lua.org/ftp/$pkgname-$pkgver.tar.gz"
- 'liblua.so.patch' 'lua.pc' 'LICENSE')
-md5sums=('efbb645e897eae37cad4344ce8b0a614'
+source=(http://www.lua.org/ftp/$pkgname-$pkgver.tar.gz
+ liblua.so.patch
+ lua.pc
+ LICENSE)
+md5sums=('dc7f94ec6ff15c985d2d6ad0f1b35654'
'bdc663c7b82ffc0b5df67611621fb625'
'e7ba6c2b695b0b84a5ea0cbff5fc9067'
'0e2bd67b909b9ff673da844ca3480df2')
+prepare() {
+ cd $pkgname-$pkgver
+ patch -p1 -i ../liblua.so.patch
+}
+
build() {
cd $pkgname-$pkgver
- patch -p1 -i "$srcdir/liblua.so.patch"
+
export CFLAGS="$CFLAGS -fPIC"
make MYCFLAGS="$CFLAGS" MYLDFLAGS="$LDFLAGS" linux
+
sed "s/%VER%/${pkgver%.*}/g;s/%REL%/$pkgver/g" ../lua.pc > lua.pc
}
package() {
cd $pkgname-$pkgver
+
make \
- TO_LIB="liblua.a liblua.so liblua.so.5.2 liblua.so.5.2.1" \
- INSTALL_DATA="cp -d" \
- INSTALL_TOP="$pkgdir/usr" \
- INSTALL_MAN="$pkgdir/usr/share/man/man1" \
+ TO_LIB='liblua.a liblua.so liblua.so.5.2 liblua.so.5.2.3' \
+ INSTALL_DATA='cp -d' \
+ INSTALL_TOP="$pkgdir"/usr \
+ INSTALL_MAN="$pkgdir"/usr/share/man/man1 \
install
- install -Dm644 lua.pc "$pkgdir/usr/lib/pkgconfig/lua.pc"
+ install -Dm644 lua.pc "$pkgdir"/usr/lib/pkgconfig/lua.pc
+
# Install the documentation
- install -d "$pkgdir/usr/share/doc/lua"
- install -m644 doc/*.{gif,png,css,html} "$pkgdir/usr/share/doc/lua"
- install -D -m644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -d "$pkgdir"/usr/share/doc/lua
+ install -m644 doc/*.{gif,png,css,html} "$pkgdir"/usr/share/doc/lua
+ install -Dm644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
-
-# vim:set ts=4 sw=4 et: