summaryrefslogtreecommitdiff
path: root/community/tolua++
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2013-12-27 23:55:53 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2013-12-27 23:55:53 +0000
commit65eeff79fff8a1bfdf67ca51d147384f46f4d5c0 (patch)
treefbfdff322b28d9a3c37e6e31c94caf1d8e48dac1 /community/tolua++
parentd53c44f055929b18d7d1b25f8367ee5836c435fc (diff)
Fri Dec 27 23:54:04 UTC 2013
Diffstat (limited to 'community/tolua++')
-rw-r--r--community/tolua++/PKGBUILD35
-rwxr-xr-xcommunity/tolua++/config_linux.py22
2 files changed, 57 insertions, 0 deletions
diff --git a/community/tolua++/PKGBUILD b/community/tolua++/PKGBUILD
new file mode 100644
index 000000000..1928a1720
--- /dev/null
+++ b/community/tolua++/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: Chirantan Ekbote <ekbotec at chromium.org>
+# Contributer: Doug Newgard <scimmia22 at outlook dot com>
+# Contributer: Stéphane Gaudreault <stephane.gaudreault@gmail.com>
+
+pkgname=tolua++
+pkgver=1.0.93
+pkgrel=1
+pkgdesc="Tool to integrate C/C++ code with Lua"
+arch=('i686' 'x86_64')
+url="http://www.codenix.com/~tolua"
+license=('MIT')
+depends=('lua51')
+makedepends=('scons')
+options=('staticlibs')
+source=(http://www.codenix.com/~tolua/${pkgname}-${pkgver}.tar.bz2
+ config_linux.py)
+md5sums=('100aa6907b8108582080b37d79c0afd7'
+ '69ad5067084cec2924f172bb04700da6')
+provides=('toluapp')
+
+build() {
+ cd ${pkgname}-${pkgver}
+ cp ../config_linux.py "${srcdir}"/${pkgname}-${pkgver}
+
+ scons all
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ scons prefix="${pkgdir}/usr" install
+
+ # install license files
+ install -Dm644 "$srcdir/${pkgname}-${pkgver}/COPYRIGHT" "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT"
+}
diff --git a/community/tolua++/config_linux.py b/community/tolua++/config_linux.py
new file mode 100755
index 000000000..dd6c2917d
--- /dev/null
+++ b/community/tolua++/config_linux.py
@@ -0,0 +1,22 @@
+## This is the linux configuration file
+# This file was adapted to be used with ArchLinux
+# Use 'scons -h' to see the list of command line options available
+
+# Compiler flags (based on ArchLinux's installation of lua)
+#LINKFLAGS = ['-g']
+CCFLAGS = ['-I/usr/include/lua5.1', '-O2', '-ansi', '-Wall', '-fPIC']
+#CCFLAGS = ['-g']
+
+# this is the default directory for installation. Files will be installed on
+# <prefix>/bin, <prefix>/lib and <prefix>/include when you run 'scons install'
+#
+# You can also specify this directory on the command line with the 'prefix'
+# option
+#
+# You can see more 'generic' options for POSIX systems on config_posix.py
+
+prefix = '/usr'
+
+# libraries (based on ArchLinux's installation of lua)
+LIBS = ['lua5.1', 'dl', 'm']
+