blob: df17f6883e684e472ea64573742a025fe73e9077 (
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: Caleb Maclennan <caleb@alerque.com>
# Contributor: Albert Kugel (Lastebil) <lastebilaur@trebel.org>
# Contributor: speps <speps@aur.archlinux.org>
# Contributor: Eric Forgeot <http://ifiction.free.fr>
# Contributor: favardin
pkgname=wxlua
pkgver=2.8.12.3
pkgrel=4
pkgdesc="A set of bindings to the wxWidgets library for the Lua programming language."
arch=('i686' 'x86_64')
url="http://wxlua.sourceforge.net"
license=('custom:wxWindows')
depends=('lua52' 'desktop-file-utils' 'wxgtk2.8' 'webkitgtk2')
optdepends=('webkit2gtk')
makedepends=('cmake')
provides=('wxstedit')
conflicts=('wxstedit')
source=("http://downloads.sourceforge.net/$pkgname/$pkgname/$pkgver/wxLua-$pkgver-src.tar.gz")
md5sums=('e0a28904d046400713c07d7c4c9515ef')
prepare() {
cd wxLua-$pkgver-src
[ -d b ] || mkdir b
# wxstedit doc folder fix
sed -i 's|doc/|share/&|' modules/wxstedit/CMakeLists.txt
# right shebang for wxluafreeze.lua
sed -i 's| \..*/|/usr/bin/env |;1s||$|' apps/wxluafreeze/wxluafreeze.lua
}
build() {
cd wxLua-$pkgver-src/b
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-2.8 \
-DwxLua_LUA_INCLUDE_DIR=/usr/include \
-DwxLua_LUA_LIBRARY=/usr/lib/liblua.so.5.2 \
-DwxLua_LUA_LIBRARY_USE_BUILTIN=0 \
-DwxLua_LUA_LIBRARY_VERSION=5.2
make
}
package() {
cd wxLua-$pkgver-src/b
make DESTDIR="$pkgdir/" install
# mv lua module
install -d "$pkgdir/usr/lib/lua/5.2"
mv "$pkgdir/usr/lib/libwx.so" "$pkgdir/usr/lib/lua/5.2/wx.so"
# desktop file
install -Dm644 ../distrib/autopackage/$pkgname.desktop \
"$pkgdir/usr/share/applications/$pkgname.desktop"
# mime file
install -Dm644 ../distrib/autopackage/$pkgname.xml \
"$pkgdir/usr/share/mime/packages/$pkgname.xml"
# license
install -Dm 644 ../docs/licence.txt \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|