Created
May 20, 2015 15:18
-
-
Save migerh/4a930274924d75741339 to your computer and use it in GitHub Desktop.
wxlua-svn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: hollunder <murks at tuxfamily dot org> | |
pkgname=wxlua-svn | |
pkgver=247 | |
pkgrel=1 | |
pkgdesc="WxLua - SVN version." | |
arch=('i686' 'x86_64') | |
url="http://wxlua.sourceforge.net" | |
license=('custom:wxWindows') | |
depends=('desktop-file-utils' 'wxgtk' 'webkitgtk2') | |
makedepends=('subversion' 'cmake') | |
provides=('wxlua' 'wxstedit') | |
conflicts=('wxlua' 'wxstedit') | |
install="wxlua.install" | |
source="wxlua::svn+http://svn.code.sf.net/p/wxlua/svn/trunk" | |
md5sums=('SKIP') | |
build() { | |
cd "$srcdir/wxlua/wxLua/" | |
# wxstedit doc folder fix | |
sed -i 's|doc/|share/&|' modules/wxstedit/CMakeLists.txt | |
cd build | |
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config \ | |
-DwxLua_LUA_INCLUDE_DIR=/usr/include/lua5.2 \ | |
-DwxLua_LUA_LIBRARY=/usr/lib/liblua.so.5.2 \ | |
-DwxLua_LUA_LIBRARY_USE_BUILTIN=0 \ | |
-DwxLua_LUA_LIBRARY_VERSION=5.2 \ | |
-DBUILD_SHARED_LIBS=TRUE | |
make | |
} | |
package() { | |
cd "$srcdir/wxlua/wxLua/build" | |
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/wxlua.desktop \ | |
"$pkgdir/usr/share/applications/wxlua.desktop" | |
# mime file | |
install -Dm644 ../distrib/autopackage/wxlua.xml \ | |
"$pkgdir/usr/share/mime/packages/wxlua.xml" | |
# license | |
install -Dm 644 ../docs/licence.txt \ | |
"$pkgdir/usr/share/licenses/wxlua/LICENSE" | |
} | |
# vim:set ts=2 sw=2 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment