wok annotate dbus-python/receipt @ rev 25161

created recipe for py3k-pillow
author Hans-G?nter Theisgen
date Fri Jul 01 10:04:47 2022 +0100 (2022-07-01)
parents f8e190dcc90f
children
rev   line source
pankso@2212 1 # SliTaz package receipt.
pankso@2212 2
pankso@2212 3 PACKAGE="dbus-python"
Hans-G?nter@22635 4 VERSION="1.2.14"
pankso@2212 5 CATEGORY="system-tools"
pankso@2212 6 SHORT_DESC="D-Bus python binding."
pankso@2212 7 MAINTAINER="pankso@slitaz.org"
pascal@15579 8 LICENSE="GPL2"
Hans-G?nter@22635 9 WEB_SITE="https://freedesktop.org/wiki/Software/DBusBindings/"
Hans-G?nter@22635 10
pankso@2212 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22635 12 WGET_URL="https://dbus.freedesktop.org/releases/dbus-python/$TARBALL"
pankso@2212 13
Hans-G?nter@22635 14 DEPENDS="dbus dbus-glib glib libgio python"
Hans-G?nter@22635 15 BUILD_DEPENDS="dbus-dev dbus-glib-dev glib-dev libgio-dev python-dev"
pankso@10385 16
pascal@24439 17 # What is the latest version available today?
pascal@24439 18 current_version()
pascal@24439 19 {
pascal@24439 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24439 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24439 22 }
pascal@24439 23
pankso@2212 24 # Rules to configure and make the package.
pankso@2212 25 compile_rules()
pankso@2212 26 {
pankso@10385 27 ./configure $CONFIGURE_ARGS &&
Hans-G?nter@22635 28 make &&
Hans-G?nter@22635 29 make install
pankso@2212 30 }
pankso@2212 31
pankso@2212 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@2212 33 genpkg_rules()
pankso@2212 34 {
pankso@2212 35 mkdir -p $fs/usr/lib
Hans-G?nter@22635 36
Hans-G?nter@22635 37 cp -a $install/usr/lib/python* $fs/usr/lib
Hans-G?nter@22635 38 rm $fs/usr/lib/python*/*/*.la
pankso@2212 39 }