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

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (24 months ago)
parents 5ea0ce1cecc0
children 7364ffdaaa60
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@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
jozee@6826 24 # Rules to configure and make the package.
jozee@6826 25 compile_rules()
jozee@6826 26 {
slaxemulator@9082 27 cd $src/src/swig/python
slaxemulator@9082 28 ./build
slaxemulator@9082 29 PYTHON_VERSION=$(python -c 'import sys; print sys.version[:3]')
slaxemulator@9082 30 mkdir -p $DESTDIR/usr/lib/python${PYTHON_VERSION}
Hans-G?nter@21454 31 cp -a $src/src/swig/python/mlt.py \
Hans-G?nter@21454 32 $DESTDIR/usr/lib/python${PYTHON_VERSION}
Hans-G?nter@21454 33 cp -a $src/src/swig/python/_mlt.so \
Hans-G?nter@21454 34 $DESTDIR/usr/lib/python${PYTHON_VERSION}
Hans-G?nter@21454 35 cp -a $src/src/swig/python/mlt_wrap.o \
Hans-G?nter@21454 36 $DESTDIR/usr/lib/python${PYTHON_VERSION}
jozee@6826 37
jozee@6826 38 }
jozee@6826 39
jozee@6826 40 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@6826 41 genpkg_rules()
jozee@6826 42 {
slaxemulator@9082 43 mkdir -p $fs/usr
pascal@15084 44 cp -a $install/usr/lib $fs/usr
jozee@6826 45 }