# SliTaz package receipt. PACKAGE="lgi" VERSION="0.9.2" CATEGORY="development" SHORT_DESC="Dynamic Lua binding to GObject libraries using GObject-Introspection." MAINTAINER="al.bobylev@gmail.com" LICENSE="MIT" WEB_SITE="https://github.com/pavouk/lgi" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/pavouk/lgi/archive/$VERSION.tar.gz" DEPENDS="glib gobject-introspection lua" BUILD_DEPENDS="gobject-introspection-dev lua-dev" # add "cairo-dev gtk+-dev" for `make check` current_version() { wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { # fix paths sed -i 's|/usr/local|/usr|g;s|5.1|5.2|g;s|51|52|g' \ $src/lgi/Makefile $src/lgi/core.lua $src/lgi/core.c # `make check` after `make` produces error make -j 1 && make PREFIX=/usr DESTDIR=$install install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $install/* $fs }