wok annotate py3k-llfuse/receipt @ rev 25532

Add some current_version()
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 27 10:46:05 2023 +0000 (21 months ago)
parents 4349b733ca4a
children 0262035dc1e7
rev   line source
Hans-G?nter@25479 1 # SliTaz package receipt.
Hans-G?nter@25479 2
Hans-G?nter@25479 3 PACKAGE="py3k-llfuse"
Hans-G?nter@25479 4 VERSION="1.4.2"
Hans-G?nter@25479 5 CATEGORY="development"
Hans-G?nter@25479 6 SHORT_DESC="A set of Python bindings for the low level FUSE API."
Hans-G?nter@25479 7 MAINTAINER="maintainer@slitaz.org"
Hans-G?nter@25479 8 LICENSE="GPL2+"
Hans-G?nter@25479 9 WEB_SITE="https://github.com/python-llfuse/python-llfuse/"
Hans-G?nter@25479 10
Hans-G?nter@25479 11 SOURCE="llfuse"
Hans-G?nter@25479 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@25479 13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$SOURCE-$VERSION.tar.gz"
Hans-G?nter@25479 14
Hans-G?nter@25479 15 DEPENDS="fuse2 py3k"
Hans-G?nter@25479 16 BUILD_DEPENDS="fuse2-dev py3k-dev py3k-setuptools_scm"
Hans-G?nter@25479 17
pascal@25532 18 # What is the latest version available today?
pascal@25532 19 current_version()
pascal@25532 20 {
pascal@25532 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@25532 22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@25532 23 }
pascal@25532 24
Hans-G?nter@25479 25 # Rules to configure and make the package.
Hans-G?nter@25479 26 compile_rules()
Hans-G?nter@25479 27 {
Hans-G?nter@25479 28 # not compiling with fuse[3]!
Hans-G?nter@25479 29 python3 setup.py build &&
Hans-G?nter@25479 30 python3 setup.py install --prefix=/usr --root=$DESTDIR
Hans-G?nter@25479 31 }
Hans-G?nter@25479 32
Hans-G?nter@25479 33 # Rules to gen a SliTaz package suitable for Tazpkg.
Hans-G?nter@25479 34 genpkg_rules()
Hans-G?nter@25479 35 {
Hans-G?nter@25479 36 mkdir -p $fs
Hans-G?nter@25479 37 cp -a $install/usr $fs
Hans-G?nter@25479 38 }