diff --git a/srcpkgs/lgi/template b/srcpkgs/lgi/template index 70f69a5fc42..2e7491b491a 100644 --- a/srcpkgs/lgi/template +++ b/srcpkgs/lgi/template @@ -1,28 +1,31 @@ # Template file for 'lgi' pkgname=lgi -version=0.6.2 -revision=2 +version=0.7.2 +revision=1 build_style=gnu-makefile -makedepends="glib-devel libffi-devel lua-devel>=5.1<5.2 +hostmakedepends="pkg-config" +makedepends="libglib-devel libffi-devel lua-devel>=5.2 gobject-introspection gir-freedesktop" short_desc="Lua binadings for gnome/gobject using gobject-introspection library" maintainer="Juan RP " license="MIT" homepage="https://github.com/pavouk/lgi" -distfiles="https://github.com/downloads/pavouk/lgi/lgi-${version}.tar.gz" -checksum=93b0a520f03822794d94cb86273d0744a3808792e2832b67f17ee03d7ded8773 + +do_fetch() { + git clone -b${version} git://github.com/pavouk/lgi.git lgi-${version} +} do_install() { - make DESTDIR=${DESTDIR} LUA_LIBDIR=/usr/lib/lua/5.1 \ - LUA_SHAREDIR=/usr/share/lua/5.1 install + make DESTDIR=${DESTDIR} LUA_LIBDIR=/usr/lib/lua/5.2 \ + LUA_SHAREDIR=/usr/share/lua/5.2 install vinstall tools/dump-typelib.lua 755 usr/bin dump-typelib vinstall LICENSE 644 usr/share/licenses/lgi } lgi_package() { - depends="gir-freedesktop" + depends="lua>=5.2 gir-freedesktop" pkg_install() { - vmove usr + vmove all } }