wok-6.x annotate python-invoice2data/receipt @ rev 24145

ventoy: set arch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 17 10:14:59 2021 +0000 (2021-11-17)
parents bf3cab9850ff
children ac8ca9758df1
rev   line source
pascal@19655 1 # SliTaz package receipt.
pascal@19655 2
pascal@19655 3 PACKAGE="python-invoice2data"
Hans-G?nter@23496 4 VERSION="0.2.93"
pascal@19655 5 CATEGORY="development"
Hans-G?nter@23496 6 TAGS="pdf"
pascal@19655 7 SHORT_DESC="Extract structured data from PDF invoices."
pascal@19655 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@19655 9 LICENSE="MIT"
Hans-G?nter@23496 10 WEB_SITE="https://github.com/m3nu/invoice2data"
Hans-G?nter@23496 11
pascal@19655 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@19655 13 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
pascal@19656 14
Hans-G?nter@23496 15 DEPENDS="poppler-apps python"
pascal@21582 16 BUILD_DEPENDS="python python-setuptools"
pascal@19655 17
pascal@24055 18 current_version()
pascal@24055 19 {
pascal@24055 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 22 }
pascal@24055 23
pascal@19655 24 # Rules to configure and make the package.
pascal@19655 25 compile_rules()
pascal@19655 26 {
pascal@19655 27 python setup.py install --root=$DESTDIR
pascal@19655 28 }
pascal@19655 29
pascal@19655 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@19655 31 genpkg_rules()
pascal@19655 32 {
pascal@19655 33 mkdir -p $fs/usr
Hans-G?nter@23496 34 cp -a $install/usr $fs
pascal@19655 35 }