wok-current view lgi/receipt @ rev 24055
Add current_version for most github hosted softwares
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 08:46:05 2021 +0000 (2021-06-08) |
parents | d915ef6e3b53 |
children | ac8ca9758df1 |
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*}/releases 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 }