wok annotate mlt-python-bindings/receipt @ rev 25600

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 15:14:43 2023 +0000 (10 months ago)
parents e717a4953b0e
children
rev   line source
jozee@6826 1 # SliTaz package receipt.
jozee@6826 2
jozee@6826 3 PACKAGE="mlt-python-bindings"
Hans-G?nter@21454 4 VERSION="6.14.0"
jozee@6826 5 CATEGORY="multimedia"
jozee@6826 6 MAINTAINER="jozee@slitaz.org"
Hans-G?nter@21454 7 SHORT_DESC="python bindings for MLT multimedia framework"
pascal@15084 8 LICENSE="LGPL2.1"
Hans-G?nter@21454 9 WEB_SITE="https://www.mltframework.org/"
Hans-G?nter@21454 10
Hans-G?nter@21454 11 SOURCE="mlt"
jozee@6826 12 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@24975 13 WGET_URL="https://github.com/mltframework/$SOURCE/archive/refs/tags/v$VERSION.tar.gz"
jozee@6826 14
pascal@15084 15 DEPENDS="python mlt"
pascal@15139 16 BUILD_DEPENDS="swig python-dev mlt"
pascal@15084 17
pascal@25600 18 # What is the latest version available today?
pascal@24055 19 current_version()
pascal@24055 20 {
pascal@24055 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@25600 22 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
pascal@24055 23 }
pascal@24055 24
jozee@6826 25 # Rules to configure and make the package.
jozee@6826 26 compile_rules()
jozee@6826 27 {
slaxemulator@9082 28 cd $src/src/swig/python
slaxemulator@9082 29 ./build
slaxemulator@9082 30 PYTHON_VERSION=$(python -c 'import sys; print sys.version[:3]')
slaxemulator@9082 31 mkdir -p $DESTDIR/usr/lib/python${PYTHON_VERSION}
Hans-G?nter@21454 32 cp -a $src/src/swig/python/mlt.py \
Hans-G?nter@21454 33 $DESTDIR/usr/lib/python${PYTHON_VERSION}
Hans-G?nter@21454 34 cp -a $src/src/swig/python/_mlt.so \
Hans-G?nter@21454 35 $DESTDIR/usr/lib/python${PYTHON_VERSION}
Hans-G?nter@21454 36 cp -a $src/src/swig/python/mlt_wrap.o \
Hans-G?nter@21454 37 $DESTDIR/usr/lib/python${PYTHON_VERSION}
jozee@6826 38
jozee@6826 39 }
jozee@6826 40
jozee@6826 41 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@6826 42 genpkg_rules()
jozee@6826 43 {
slaxemulator@9082 44 mkdir -p $fs/usr
pascal@15084 45 cp -a $install/usr/lib $fs/usr
jozee@6826 46 }