blob: 6bc8105130d540ea1cfbe7354954784e93e62e78 (
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
|
# Maintainer: Sinnamon (George Aladin) <AngleSi at yahoo dot com>
pkgname=lua51-ex
_pkgname=lua-ex
pkgver=2.07.2009
pkgrel=1
pkgdesc="ExtensionProposal is an API and implementation for additional non-ANSI functions in the os and io namespaces."
arch=('i686' 'x86_64')
license=('MIT')
url="http://lua-users.org/wiki/ExtensionProposal"
depends=('lua51')
source=('https://github.com/luaforge/lua-ex/archive/master.zip')
md5sums=('730831f88d3dea4fcddadd81f2c6cb90')
prepare() {
cd ${_pkgname}-master
##
echo "LUAINC= -I/usr/include/lua5.1/" > conf
echo "LUALIB= -L/usr/lib/ -llua5.1" >> conf
echo "POSIX_SPAWN= -DMISSING_POSIX_SPAWN" >> conf
echo "EXTRA= posix_spawn.o" >> conf
##
sed -i 's/$(INCLUDES)/$(INCLUDES) -fPIC/g' posix/Makefile
}
build() {
cd ${_pkgname}-master
make linux || return 1
}
package() {
cd ${_pkgname}-master/posix/
install -D ex.so ${pkgdir}/usr/lib/lua/5.1/ex.so
}
|