mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
extra/lua to 5.1.4-9
This commit is contained in:
parent
3d3d644971
commit
b1472ec602
1 changed files with 13 additions and 13 deletions
|
@ -1,4 +1,4 @@
|
||||||
# $Id: PKGBUILD 138070 2011-09-16 01:15:44Z eric $
|
# $Id: PKGBUILD 142952 2011-11-19 04:33:22Z eric $
|
||||||
# Maintainer: Juergen Hoetzel <juergen@archlinux.org>
|
# Maintainer: Juergen Hoetzel <juergen@archlinux.org>
|
||||||
# Contributor: Damir Perisa <damir.perisa@bluewin.ch>
|
# Contributor: Damir Perisa <damir.perisa@bluewin.ch>
|
||||||
|
|
||||||
|
@ -9,27 +9,27 @@ plugrel=1
|
||||||
|
|
||||||
pkgname=lua
|
pkgname=lua
|
||||||
pkgver=5.1.4
|
pkgver=5.1.4
|
||||||
pkgrel=8
|
pkgrel=9
|
||||||
pkgdesc="A powerful light-weight programming language designed for extending applications."
|
_patchver=5.1.4-4
|
||||||
|
pkgdesc="A powerful light-weight programming language designed for extending applications"
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
url="http://www.lua.org/"
|
url="http://www.lua.org/"
|
||||||
depends=('readline')
|
depends=('readline')
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
options=('!makeflags' '!emptydirs')
|
options=('!makeflags' '!emptydirs')
|
||||||
source=("http://www.lua.org/ftp/${pkgname}-${pkgver}.tar.gz"
|
source=(http://www.lua.org/ftp/${pkgname}-${pkgver}.tar.gz
|
||||||
'http://www.lua.org/ftp/patch-lua-5.1.4-3'
|
http://www.lua.org/ftp/patch-lua-${_patchver}
|
||||||
'lua-arch.patch'
|
lua-arch.patch lua-5.1-cflags.diff)
|
||||||
'lua-5.1-cflags.diff')
|
|
||||||
md5sums=('d0870f2de55d59c1c8419f36e8fac150'
|
md5sums=('d0870f2de55d59c1c8419f36e8fac150'
|
||||||
'998ef7886183f61d3a5ca891a9ce6a79'
|
'329d8695e3e6f1267190e220559f7b6c'
|
||||||
'6c5953f63904bf20a0183cdab05b80de'
|
'6c5953f63904bf20a0183cdab05b80de'
|
||||||
'249582bf1fd861ccf492d2c35a9fe732')
|
'249582bf1fd861ccf492d2c35a9fe732')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||||
|
patch -p0 -i "${srcdir}/patch-lua-${_patchver}" -d src
|
||||||
patch -p1 -i "${srcdir}/lua-arch.patch"
|
patch -p1 -i "${srcdir}/lua-arch.patch"
|
||||||
patch -i "${srcdir}/patch-lua-5.1.4-3" -d src
|
[ "$CARCH" == "armv7h" ] && patch -p1 -i "${srcdir}/lua-5.1-cflags.diff"
|
||||||
[ "$CARCH" == "armv7h" ] && patch -Np1 -i ../lua-5.1-cflags.diff
|
|
||||||
[ "$CARCH" == "armv7h" ] && export CFLAGS="$CFLAGS -fPIC"
|
[ "$CARCH" == "armv7h" ] && export CFLAGS="$CFLAGS -fPIC"
|
||||||
make INSTALL_DATA="cp -d" TO_LIB="liblua.a liblua.so liblua.so.5.1" LUA_SO=liblua.so \
|
make INSTALL_DATA="cp -d" TO_LIB="liblua.a liblua.so liblua.so.5.1" LUA_SO=liblua.so \
|
||||||
INSTALL_TOP="${pkgdir}/usr" INSTALL_MAN="${pkgdir}/usr/share/man/man1" \
|
INSTALL_TOP="${pkgdir}/usr" INSTALL_MAN="${pkgdir}/usr/share/man/man1" \
|
||||||
|
@ -45,6 +45,6 @@ package() {
|
||||||
install -D -m644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/COPYRIGHT"
|
install -D -m644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/COPYRIGHT"
|
||||||
|
|
||||||
# Install the documentation
|
# Install the documentation
|
||||||
mkdir -p "${pkgdir}/usr/share/doc/lua"
|
install -d "${pkgdir}/usr/share/doc/lua"
|
||||||
cp -R doc/* "${pkgdir}/usr/share/doc/lua"
|
install -m644 doc/*.{gif,png,css,html} "${pkgdir}/usr/share/doc/lua"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue