blob: 2255b35b1d0e78a1f7978222e9359bf83afb39a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# $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.3
pkgrel=1
pkgdesc='Powerful light-weight programming language designed for extending applications'
arch=('i686' 'x86_64' 'mips64el')
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=('dc7f94ec6ff15c985d2d6ad0f1b35654'
'bdc663c7b82ffc0b5df67611621fb625'
'e7ba6c2b695b0b84a5ea0cbff5fc9067'
'0e2bd67b909b9ff673da844ca3480df2')
prepare() {
cd $pkgname-$pkgver
patch -p1 -i ../liblua.so.patch
}
build() {
cd $pkgname-$pkgver
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.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 the documentation
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
}
|