blob: 6cd94bdf5e364feef928360f8e9e78acf6025009 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tolua++
pkgver=1.0.93
pkgrel=1
pkgdesc="a tool to integrate C/C++ code with Lua"
url="http://www.codenix.com/~tolua/"
arch="all"
license="MIT"
depends=
makedepends="lua-dev"
install=
subpackages=
source="http://www.codenix.com/~tolua/tolua++-$pkgver.tar.bz2"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
}
build() {
cd "$_builddir"/src
# see http://lua-users.org/wiki/CompilingToluappWithoutScons
gcc -fPIC -c lib/*.c -I../include
ar rcsv libtolua++.a *.o
gcc bin/tolua.c bin/toluabind.c -I../include -L. -llua -ltolua++ \
-o tolua++
}
package() {
cd "$_builddir"/src
install -d "$pkgdir"/usr/lib/ "$pkgdir"/usr/bin "$pkgdir"/usr/include
install libtolua++.a "$pkgdir"/usr/lib/
install tolua++ "$pkgdir"/usr/bin/
install ../include/tolua++.h "$pkgdir"/usr/include/
}
md5sums="100aa6907b8108582080b37d79c0afd7 tolua++-1.0.93.tar.bz2"
|