wok-6.x view lgi/receipt @ rev 25345
updated tar and tar-lang (1.32 -> 1.34)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jul 25 07:58:01 2022 +0100 (2022-07-25) |
parents | 5ea0ce1cecc0 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="lgi"
4 VERSION="0.9.2"
5 CATEGORY="development"
6 SHORT_DESC="Dynamic Lua binding to GObject libraries using GObject-Introspection."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="MIT"
9 WEB_SITE="https://github.com/pavouk/lgi"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/pavouk/lgi/archive/$VERSION.tar.gz"
14 DEPENDS="glib gobject-introspection lua"
15 BUILD_DEPENDS="gobject-introspection-dev lua-dev"
16 # add "cairo-dev gtk+-dev" for `make check`
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # fix paths
28 sed -i 's|/usr/local|/usr|g;s|5.1|5.2|g;s|51|52|g' \
29 $src/lgi/Makefile $src/lgi/core.lua $src/lgi/core.c
31 # `make check` after `make` produces error
32 make -j 1 &&
33 make PREFIX=/usr DESTDIR=$install install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 cp -a $install/* $fs
40 }