wok-6.x view python-invoice2data/receipt @ rev 24291

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