wok-current annotate pywebkitgtk/receipt @ rev 24994
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 15 20:25:22 2022 +0000 (2022-05-15) |
parents | b9659e3c2111 |
children | 5ca5ccbc0ce5 |
rev | line source |
---|---|
slaxemulator@7726 | 1 # SliTaz package receipt. |
slaxemulator@7726 | 2 |
slaxemulator@7726 | 3 PACKAGE="pywebkitgtk" |
slaxemulator@7726 | 4 VERSION="1.1.7" |
slaxemulator@7726 | 5 CATEGORY="development" |
slaxemulator@7726 | 6 SHORT_DESC="Python bindings to the Webkit GTK+ port." |
slaxemulator@7726 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15004 | 8 LICENSE="LGPL2" |
slaxemulator@7726 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20687 | 10 WEB_SITE="https://wiki.python.org/moin/PyWebkitGtk" |
pascal@24982 | 11 WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$PACKAGE/$TARBALL" |
slaxemulator@7726 | 12 |
pascal@15004 | 13 DEPENDS="libwebkit pygtk libxslt" |
pascal@15004 | 14 BUILD_DEPENDS="libwebkit-dev pygtk-dev libxslt-dev python-dev util-linux-uuid-dev pkg-config" |
pascal@15004 | 15 |
pascal@24545 | 16 # What is the latest version available today? |
pascal@24545 | 17 current_version() |
pascal@24545 | 18 { |
pascal@24545 | 19 wget -O - https://github.com/jmalonzo/pywebkitgtk/tags 2>/dev/null | \ |
pascal@24545 | 20 sed '/archive.*tar/!d;s|.*/[A-Z_]*\(.*\).tar.*|\1|;s|_|.|g;q' |
pascal@24545 | 21 } |
pascal@24545 | 22 |
slaxemulator@7726 | 23 # Rules to configure and make the package. |
slaxemulator@7726 | 24 compile_rules() |
slaxemulator@7726 | 25 { |
slaxemulator@7726 | 26 cd $src |
slaxemulator@7726 | 27 ./configure \ |
slaxemulator@7726 | 28 --prefix=/usr \ |
slaxemulator@7726 | 29 --infodir=/usr/share/info \ |
slaxemulator@7726 | 30 --mandir=/usr/share/man \ |
slaxemulator@7726 | 31 $CONFIGURE_ARGS && |
pascal@15004 | 32 make && make DESTDIR=$DESTDIR install |
slaxemulator@7726 | 33 } |
slaxemulator@7726 | 34 |
slaxemulator@7726 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@7726 | 36 genpkg_rules() |
slaxemulator@7726 | 37 { |
slaxemulator@7726 | 38 mkdir -p $fs/usr/share |
pascal@15004 | 39 cp -a $install/usr/lib $fs/usr |
pascal@15004 | 40 cp -a $install/usr/share/pywebkitgtk $fs/usr/share |
slaxemulator@7726 | 41 } |
slaxemulator@7726 | 42 |