blob: e2af749806dec25ed321603c999973c539773eae (
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
54
55
56
57
58
59
60
61
62
63
64
|
# Maintainer: Cameron Banta <cbanta@gmail.com>
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Contributor: Lennart Eichhorn <lennart@madmanfred.com>
pkgname=(lua-pc lua51-pc lua52-pc lua53-pc)
pkgver=1.0.0
pkgrel=4
pkgdesc="Lua Process Call (lpc)"
license=('MIT')
arch=('i686' 'x86_64')
url="https://github.com/fabled/lpc"
makedepends=('lua' 'lua51' 'lua52' 'lua53')
source=( https://github.com/fabled/lpc/archive/bfeda7204ff2630adc73e6c60e4ad800d3f933d7.zip )
md5sums=('971d6029613d10950f9cf01d602e19aa')
build() {
mkdir -p 5.1 5.2 5.3 5.4
ln -s "$srcdir/lpc-bfeda7204ff2630adc73e6c60e4ad800d3f933d7" "$srcdir/lpc"
cd "$srcdir/lpc"
make LUA_PKGCONF=lua51 TARGET=../5.1/lpc.so
make clean
make LUA_PKGCONF=lua52 TARGET=../5.2/lpc.so
make clean
make LUA_PKGCONF=lua53 TARGET=../5.3/lpc.so
make clean
make LUA_PKGCONF=lua TARGET=../5.4/lpc.so
make clean
}
package_lua51-pc() {
pkgdesc='Lua Process Call (lpc) for Lua 5.1'
depends+=('lua51')
cd "$srcdir"
install -d "$pkgdir"/usr/lib/lua/5.1
install 5.1/lpc.so "$pkgdir"/usr/lib/lua/5.1/lpc.so
install -Dm644 lpc/COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
package_lua52-pc() {
pkgdesc='Lua Process Call (lpc) for Lua 5.2'
depends+=('lua52')
cd "$srcdir"
install -d "$pkgdir"/usr/lib/lua/5.2
install 5.2/lpc.so "$pkgdir"/usr/lib/lua/5.2/lpc.so
install -Dm644 lpc/COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
package_lua53-pc() {
pkgdesc='Lua Process Call (lpc) for Lua 5.3'
depends+=('lua53')
cd "$srcdir"
install -d "$pkgdir"/usr/lib/lua/5.3
install 5.3/lpc.so "$pkgdir"/usr/lib/lua/5.3/lpc.so
install -Dm644 lpc/COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
package_lua-pc() {
pkgdesc='Lua Process Call (lpc) for Lua 5.4'
depends+=('lua')
cd "$srcdir"
install -d "$pkgdir"/usr/lib/lua/5.4
install 5.4/lpc.so "$pkgdir"/usr/lib/lua/5.4/lpc.so
install -Dm644 lpc/COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
|