void-packages/srcpkgs/luakit/template
Jürgen Buchmüller b8918e2a7d lua: update to 5.3.1
+ Rename lua and lua-devel to lua52 and lua52-devel
+ Modify packages depending on lua52 accordingly:
+ Many packages auto-detect lua52 files
+ Some packages need hints where / how to find lua52
+ One package (xmoto) downgraded to lua51, because it wouldn't find lua52
+ One package (vim) upgraded to lua (5.3.1)

There may be more packages upgradable without problems.
I didn't want to change too much in this move without the
respective package maintainers first taking a look.

Most notably conky-cli wouldn't work with lua52. I upgraded it
to 1.10.0 (same as conky) and tried to keep the flags the same
for the change from gnu-configure to cmake.
2015-10-02 11:24:59 +02:00

37 lines
1.1 KiB
Bash

# Template file for 'luakit'
pkgname=luakit
_distver=2012.09.13
_patchver=r1
version=${_distver}.${_patchver}
revision=5
hostmakedepends="pkg-config help2man"
makedepends="webkitgtk2-devel lua52-devel luafilesystem libunique1-devel sqlite-devel LuaJIT-devel"
depends="desktop-file-utils luafilesystem"
conf_files="
/etc/xdg/luakit/webview.lua
/etc/xdg/luakit/binds.lua
/etc/xdg/luakit/globals.lua
/etc/xdg/luakit/rc.lua
/etc/xdg/luakit/modes.lua
/etc/xdg/luakit/window.lua
/etc/xdg/luakit/theme.lua"
short_desc="Fast, small, webkit based browser framework extensible by Lua"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-3"
homepage="http://mason-larobina.github.com/luakit"
distfiles="https://github.com/mason-larobina/luakit/archive/${_distver}-${_patchver}.tar.gz"
checksum=a2d0a0cdf802fad2a83ef83ec87e7f4bfb61d76da4f48cd8f512085eee1aef18
wrksrc=$pkgname-$_distver-$_patchver
pre_build() {
# use luajit to run script needed at build
sed -i '1s,lua,luajit,' build-utils/gentokens.lua
}
do_build() {
make USE_LUAJIT=1 PREFIX=/usr all
}
do_install() {
make PREFIX=/usr DESTDIR=${DESTDIR} install
chmod -x ${DESTDIR}/usr/share/pixmaps/luakit.png
}