summaryrefslogtreecommitdiffstats
path: root/abs/extra/lua51/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/lua51/PKGBUILD')
-rw-r--r--abs/extra/lua51/PKGBUILD14
1 files changed, 7 insertions, 7 deletions
diff --git a/abs/extra/lua51/PKGBUILD b/abs/extra/lua51/PKGBUILD
index 39ac19c..1f802e8 100644
--- a/abs/extra/lua51/PKGBUILD
+++ b/abs/extra/lua51/PKGBUILD
@@ -5,9 +5,9 @@
pkgname=lua51
pkgver=5.1.5
-pkgrel=4
+pkgrel=6
pkgdesc='Powerful lightweight programming language designed for extending applications'
-arch=('i686' 'x86_64')
+arch=('x86_64')
url='http://www.lua.org/'
depends=('readline')
license=('MIT')
@@ -23,15 +23,15 @@ prepare() {
cd lua-$pkgver
patch -p1 -i ../lua-arch.patch
patch -p1 -i ../lua-5.1-cflags.diff
+
+ sed -e 's:llua:llua5.1:' -e 's:/include:/include/lua5.1:' -i etc/lua.pc
+ sed -r -e '/^LUA_(SO|A|T)=/ s/lua/lua5.1/' -e '/^LUAC_T=/ s/luac/luac5.1/' -i src/Makefile
}
build() {
cd lua-$pkgver
[[ $CARCH == x86_64 ]] && export CFLAGS="$CFLAGS -fPIC"
- sed -e 's:llua:llua5.1:' -e 's:/include:/include/lua5.1:' -i etc/lua.pc
- sed -r -e '/^LUA_(SO|A|T)=/ s/lua/lua5.1/' -e '/^LUAC_T=/ s/luac/luac5.1/' \
- -i src/Makefile
make MYCFLAGS="$CFLAGS" MYLDFLAGS="$LDFLAGS" linux
}
@@ -47,8 +47,8 @@ package() {
INSTALL_MAN="$pkgdir"/usr/share/man/man1 \
install
- install -Dm644 etc/lua.pc "$pkgdir"/usr/lib/pkgconfig/lua5.1.pc
- install -d "$pkgdir/usr/share/doc/$pkgname"
+ install -Dm644 etc/lua.pc "$pkgdir"/usr/lib/pkgconfig/$pkgname.pc
+ install -d "$pkgdir"/usr/share/doc/$pkgname
install -m644 doc/*.{gif,png,css,html} "$pkgdir"/usr/share/doc/$pkgname
install -Dm644 COPYRIGHT "$pkgdir"/usr/share/licenses/$pkgname/COPYRIGHT