wok annotate python-erppeek/receipt @ rev 25062
Up foomatic-db-nonfree (20210824)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 07 10:29:31 2022 +0000 (2022-06-07) |
parents | 104a2a2e5484 |
children | dd9b5a434fac |
rev | line source |
---|---|
pascal@18875 | 1 # SliTaz package receipt. |
pascal@18875 | 2 |
pascal@18875 | 3 PACKAGE="python-erppeek" |
pascal@18875 | 4 VERSION="1.6.3" |
pascal@18875 | 5 CATEGORY="development" |
pascal@18875 | 6 SHORT_DESC="Versatile tool for browsing Odoo / OpenERP data." |
pascal@18875 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@18875 | 8 LICENSE="BSD" |
pascal@24975 | 9 WEB_SITE="https://pypi.python.org/pypi/$SOURCE/$VERSION" |
pascal@18875 | 10 SOURCE="ERPpeek" |
pascal@18875 | 11 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@18875 | 12 WGET_URL="https://pypi.python.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
pascal@18875 | 13 |
pascal@18875 | 14 DEPENDS="python" |
pascal@21581 | 15 BUILD_DEPENDS="wget python python-setuptools" |
pascal@18875 | 16 |
pascal@24391 | 17 # What is the latest version available today? |
pascal@24391 | 18 current_version() |
pascal@24391 | 19 { |
pascal@24391 | 20 wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \ |
pascal@24391 | 21 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||;q" |
pascal@24391 | 22 } |
pascal@24391 | 23 |
pascal@18875 | 24 # Rules to configure and make the package. |
pascal@18875 | 25 compile_rules() |
pascal@18875 | 26 { |
pascal@18875 | 27 python setup.py install --prefix=/usr --root=$DESTDIR |
pascal@18875 | 28 } |
pascal@18875 | 29 |
pascal@18875 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@18875 | 31 genpkg_rules() |
pascal@18875 | 32 { |
pascal@18875 | 33 cp -a $install/usr $fs/ |
pascal@18875 | 34 } |