wok-6.x view pygobject3/receipt @ rev 24111

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 28 17:26:43 2021 +0000 (2021-09-28)
parents 8e0ca9e60f25
children 73f36875e5a7
line source
1 # SliTaz package receipt.
3 PACKAGE="pygobject3"
4 SOURCE="pygobject"
5 VERSION="3.18.2"
6 CATEGORY="development"
7 SHORT_DESC="Python bindings for the GObject3 library"
8 MAINTAINER="psychomaniak@xakep.ru"
9 LICENSE="LGPL2.1"
10 TARBALL="$SOURCE-$VERSION.tar.xz"
11 WEB_SITE="http://live.gnome.org/PyGObject"
12 WGET_URL="$GNOME_MIRROR/$SOURCE/${VERSION%.*}/$TARBALL"
14 PROVIDE="python-gi"
15 DEPENDS="python pycairo glib libffi libgio gtk-girepository"
16 BUILD_DEPENDS="$DEPENDS python python-dev pkg-config glib-dev libgio-dev \
17 pycairo-dev cairo-dev libffi-dev gobject-introspection-dev"
19 current_version()
20 {
21 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
22 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure $CONFIGURE_ARGS > /dev/null 2>&1 # create ./libtool
29 ./configure $CONFIGURE_ARGS &&
30 make && make install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cp -a $install/* $fs
37 }