SHOW:
|
|
- or go back to the newest paste.
1 | # Maintainer : speps <speps at aur dot archlinux dot org> | |
2 | # Contributor: Harley Laue <losinggeneration@gmail.com> | |
3 | # Contributor: Eric Forgeot < http://ifiction.free.fr > | |
4 | ||
5 | pkgname=wxlua | |
6 | pkgver=2.8.12.2 | |
7 | pkgrel=2 | |
8 | pkgdesc="A set of bindings to the wxWidgets library for the Lua programming language." | |
9 | arch=('i686' 'x86_64') | |
10 | url="http://wxlua.sourceforge.net" | |
11 | license=('custom:wxWindows') | |
12 | depends=('lua51' 'desktop-file-utils' 'wxgtk') | |
13 | makedepends=('cmake') | |
14 | install="$pkgname.install" | |
15 | source=("https://launchpad.net/~zerobranestudio/+archive/zerobranestudio/+files/wxlua_$pkgver.orig.tar.gz" | |
16 | - | #source=("http://downloads.sourceforge.net/$pkgname/$pkgname/$pkgver/wxLua-$pkgver-src.tar.gz") |
16 | + | |
17 | md5sums=('6570b61a1ed62cce90d8c773cf09dce5' | |
18 | '8b3f4d426b97ea335b053353f9f220b2') | |
19 | ||
20 | build() { | |
21 | cd "$srcdir/$pkgname-$pkgver" | |
22 | ||
23 | - | # Let configure find system lua |
23 | + | cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_INSTALL_PREFIX=/usr \ |
24 | - | sed -i "s_\(lua\)5.1_\1_g;s_\(include\)/lua_\1_" \ |
24 | + | |
25 | - | configure \ |
25 | + | |
26 | - | build/autoconf/configure.ac \ |
26 | + | |
27 | - | apps/Makefile.in \ |
27 | + | |
28 | - | modules/Makefile.in |
28 | + | |
29 | } | |
30 | - | # Prevent installing lua headers |
30 | + | |
31 | - | sed -i "/include\/lauxlib\.h/d" modules/Makefile.in |
31 | + | |
32 | cd "$srcdir/$pkgname-$pkgver" | |
33 | - | # let wxbind sources be installed |
33 | + | |
34 | - | # in a more suitable path |
34 | + | |
35 | - | sed -i "s|src/wxbind|include/wxbind|g" \ |
35 | + | |
36 | - | modules/{Makefile.in,build/bakefiles/modules.bkl} |
36 | + | |
37 | "$pkgdir/usr/share/licenses/$pkgname/LICENSE" | |
38 | - | cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \ |
38 | + | |
39 | - | -DBUILD_INSTALL_PREFIX=/usr \ |
39 | + | # Move the lua module to the correct directory |
40 | mkdir -p "$pkgdir/usr/lib/lua/5.1/" | |
41 | cd "$pkgdir/usr/lib" | |
42 | local libwxlua="libwx.so" | |
43 | mv "$libwxlua" "lua/5.1/${libwxlua:3}" | |
44 | } |