SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "pygobject"

# SliTaz package receipt.

PACKAGE="pygobject"
VERSION="2.28.7"
CATEGORY="development"
SHORT_DESC="Python bindings for the GObject library."
MAINTAINER="erjo@slitaz.org"
LICENSE="LGPL2.1"
WEB_SITE="https://wiki.gnome.org/Projects/PyGObject"

TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"

DEPENDS="glib libffi libgio pycairo python"
BUILD_DEPENDS="cairo-dev glib-dev libffi-dev libgio-dev pkg-config pycairo-dev 
    python python-dev"

current_version()
{
    wget -O - $(dirname $WGET_URL) 2>/dev/null | \
    sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure            \
        --disable-introspection    \
        $CONFIGURE_ARGS &&
    make &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')

    mkdir -p $fs/usr/lib
    cp -a $install/usr/lib/$PYTHON_LIB    $fs/usr/lib
    cp -a $install/usr/lib/*.so*        $fs/usr/lib

        # Ensure remove .la files
        find $fs -name "*.la" -delete
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)