wok-current view pygobject/receipt @ rev 25715
Adjust deps between abiword / abiword-plugins
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Jun 14 11:52:43 2024 +0000 (5 months ago) |
parents | 6831608a1b2a |
children |
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
43 # Ensure remove .la files
44 find $fs -name "*.la" -delete
45 }