wok-current view pygobject/receipt @ rev 25087

Up alpine (2.26)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jun 17 09:35:48 2022 +0000 (2022-06-17)
parents 2a362443b481
children 3ad63c8fc2f9
line source
1 # SliTaz package receipt.
3 PACKAGE="pygobject"
4 VERSION="2.28.7"
5 CATEGORY="development"
6 SHORT_DESC="Python bindings for the GObject library."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://wiki.gnome.org/Projects/PyGObject"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
14 DEPENDS="glib libffi libgio pycairo python"
15 BUILD_DEPENDS="cairo-dev glib-dev libffi-dev libgio-dev pkg-config pycairo-dev
16 python python-dev"
18 current_version()
19 {
20 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
21 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure \
28 --disable-introspection \
29 $CONFIGURE_ARGS &&
30 make &&
31 make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
39 mkdir -p $fs/usr/lib
40 cp -a $install/usr/lib/$PYTHON_LIB $fs/usr/lib
41 cp -a $install/usr/lib/*.so* $fs/usr/lib
42 }