New package: luakit-2012.09.13.r1 (close #136).

This commit is contained in:
Juan RP 2013-08-19 08:32:31 +02:00
parent 28a7826c68
commit a1e7b44af6

48
srcpkgs/luakit/template Normal file
View file

@ -0,0 +1,48 @@
# Template file for 'luakit'
pkgname=luakit
_distver=2012.09.13
_patchver=r1
version=${_distver}.${_patchver}
revision=1
hostmakedepends="pkg-config help2man"
makedepends="webkit-gtk-devel lua-devel luafilesystem libunique1-devel sqlite-devel desktop-file-utils LuaJIT-devel"
short_desc="Fast, small, webkit based browser framework extensible by Lua"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-3"
homepage="http://mason-larobina.github.com/luakit"
nofetch=yes
noextract=yes
do_fetch() {
git clone -b${_distver}-${_patchver} git://github.com/mason-larobina/luakit.git ${pkgname}-${version}
}
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
}
luakit_package() {
depends="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"
pkg_install() {
vmove all
}
}