updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / lib32-lua / PKGBUILD
blobdab33d818a36e5bf1eebd2f7aca795ff63216427
1 # Maintainer: Davorin Učakar <davorin.ucakar@gmail.com>
2 # Maintainer: Juergen Hoetzel <juergen@archlinux.org>
3 # Contributor: Damir Perisa <damir.perisa@bluewin.ch>
5 pkgname=lib32-lua 
6 pkgver=5.1.4
7 pkgrel=3
8 _patchver=5.1.4-4
9 pkgdesc="A powerful light-weight programming language designed for extending applications" 
10 arch=('x86_64')
11 url="http://www.lua.org/"
12 depends=('lib32-glibc')
13 makedepends=('lib32-readline')
14 license=('MIT')
15 options=('!makeflags' '!emptydirs')
16 source=(http://www.lua.org/ftp/lua-${pkgver}.tar.gz
17         http://www.lua.org/ftp/patch-lua-${_patchver}
18         lua-arch.patch)
19 md5sums=('d0870f2de55d59c1c8419f36e8fac150'
20          '329d8695e3e6f1267190e220559f7b6c'
21          '6c5953f63904bf20a0183cdab05b80de')
23 build() { 
24   cd "${srcdir}/lua-${pkgver}"
25   patch -p0 -i "${srcdir}/patch-lua-${_patchver}" -d src
26   patch -p1 -i "${srcdir}/lua-arch.patch"
27   CFLAGS="$CFLAGS -O2 -m32" LDFLAGS="$LDFLAGS -O2 -m32"
28   make INSTALL_DATA="cp -d" TO_LIB="liblua.a liblua.so liblua.so.5.1" LUA_SO=liblua.so \
29     INSTALL_TOP="${pkgdir}/usr" CFLAGS="$CFLAGS" MYLDFLAGS="$LDFLAGS" linux
32 package() {
33   cd "${srcdir}/lua-${pkgver}"
34   make INSTALL_DATA="cp -d" TO_LIB="liblua.a liblua.so liblua.so.5.1" LUA_SO=liblua.so \
35     INSTALL_TOP="${pkgdir}/usr" install
36   rm -rf ${pkgdir}/usr/{bin,include,man}
37   mv ${pkgdir}/usr/lib ${pkgdir}/usr/lib32