wok-current view lgi/receipt @ rev 25695

Up linux 5.10.214, Patch xorg-server (CVE-2024-31080, CVE-2024-31081, CVE-2024-31082, CVE-2024-31083)
author Stanislas Leduc <shann@slitaz.org>
date Thu Apr 04 08:53:51 2024 +0000 (7 months ago)
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 }