mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
31 lines
1.1 KiB
Bash
31 lines
1.1 KiB
Bash
# ARM Maintaner: Krzysztof Warzecha <kwarzecha7@gmail.com>
|
|
# Maintainer: Juergen Hoetzel <juergen@archlinux.org>
|
|
# Contributor: Damir Perisa <damir.perisa@bluewin.ch>
|
|
|
|
pkgname=lua
|
|
pkgver=5.1.4
|
|
pkgrel=4
|
|
pkgdesc="A powerful light-weight programming language designed for extending applications."
|
|
arch=('arm')
|
|
url="http://www.lua.org/"
|
|
depends=('readline' 'ncurses')
|
|
license=(MIT)
|
|
options=('!makeflags')
|
|
source=($url/ftp/$pkgname-$pkgver.tar.gz $pkgname-arch.patch)
|
|
md5sums=('d0870f2de55d59c1c8419f36e8fac150'
|
|
'1bd1164a19abf9165e231ba0d8a0bbc7')
|
|
|
|
build() {
|
|
cd $startdir/src/$pkgname-$pkgver
|
|
patch -p1 -i $startdir/src/$pkgname-arch.patch || return 1
|
|
|
|
make INSTALL_DATA="cp -d" TO_LIB="liblua.a liblua.so liblua.so.5.1" LUA_SO=liblua.so INSTALL_TOP=$startdir/pkg/usr INSTALL_MAN=$startdir/pkg/usr/share/man/man1 \
|
|
linux install || return 1
|
|
install -D -m 644 etc/lua.pc $startdir/pkg/usr/lib/pkgconfig/lua.pc
|
|
install -D -m644 COPYRIGHT $startdir/pkg/usr/share/licenses/$pkgname/COPYRIGHT
|
|
|
|
# Install the documentation
|
|
mkdir -p $pkgdir/usr/share/doc/lua
|
|
cp -R doc/* $pkgdir/usr/share/doc/lua
|
|
}
|
|
# vim: ts=2 sw=2 et ft=sh
|