diff options
author | Albert Kugel (Latebil) | 2015-06-19 23:25:33 +0300 |
---|---|---|
committer | Albert Kugel (Latebil) | 2015-06-19 23:25:33 +0300 |
commit | 24a0a8dcc93207a894023c0b4d04663a6d4cdf63 (patch) | |
tree | 6901896459a2b3d1fe285cc3d18c4c1cb163ae90 | |
download | aur-24a0a8dcc93207a894023c0b4d04663a6d4cdf63.tar.gz |
Initial install
- includes changes suggested by Hollander in the aur page
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 63 | ||||
-rw-r--r-- | wxlua.install | 12 |
3 files changed, 96 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b5c923c948a4 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = wxlua + pkgdesc = A set of bindings to the wxWidgets library for the Lua programming language. + pkgver = 2.8.12.3 + pkgrel = 2 + url = http://wxlua.sourceforge.net + install = wxlua.install + arch = i686 + arch = x86_64 + license = custom:wxWindows + makedepends = cmake + depends = lua + depends = desktop-file-utils + depends = wxgtk2.8 + depends = webkitgtk2 + provides = wxstedit + conflicts = wxstedit + source = http://downloads.sourceforge.net/wxlua/wxlua/2.8.12.3/wxLua-2.8.12.3-src.tar.gz + md5sums = e0a28904d046400713c07d7c4c9515ef + +pkgname = wxlua + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0aba83ac3c99 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,63 @@ +# Maintainer: Albert Kugel (Lastebil) (lastebilaur@trebel.org) +# Contributor : speps <speps at aur dot archlinux dot org> +# Contributor: Eric Forgeot < http://ifiction.free.fr > +# Submitter: favardin + +pkgname=wxlua +pkgver=2.8.12.3 +pkgrel=2 +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=('lua' 'desktop-file-utils' 'wxgtk2.8' 'webkitgtk2' ) +makedepends=('cmake') +provides=('wxstedit') +conflicts=('wxstedit') +install="$pkgname.install" +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" +} diff --git a/wxlua.install b/wxlua.install new file mode 100644 index 000000000000..4c3ec62a0d8c --- /dev/null +++ b/wxlua.install @@ -0,0 +1,12 @@ +post_install() { + update-desktop-database -q + update-mime-database usr/share/mime +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} |