wok-6.x view mlt-python-bindings/receipt @ rev 25445
itaka: fix wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 06 07:38:52 2022 +0000 (2022-09-06) |
parents | 5ea0ce1cecc0 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="mlt-python-bindings"
4 VERSION="6.14.0"
5 CATEGORY="multimedia"
6 MAINTAINER="jozee@slitaz.org"
7 SHORT_DESC="python bindings for MLT multimedia framework"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://www.mltframework.org/"
11 SOURCE="mlt"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/mltframework/$SOURCE/archive/refs/tags/v$VERSION.tar.gz"
15 DEPENDS="python mlt"
16 BUILD_DEPENDS="swig python-dev mlt"
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 cd $src/src/swig/python
28 ./build
29 PYTHON_VERSION=$(python -c 'import sys; print sys.version[:3]')
30 mkdir -p $DESTDIR/usr/lib/python${PYTHON_VERSION}
31 cp -a $src/src/swig/python/mlt.py \
32 $DESTDIR/usr/lib/python${PYTHON_VERSION}
33 cp -a $src/src/swig/python/_mlt.so \
34 $DESTDIR/usr/lib/python${PYTHON_VERSION}
35 cp -a $src/src/swig/python/mlt_wrap.o \
36 $DESTDIR/usr/lib/python${PYTHON_VERSION}
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr
44 cp -a $install/usr/lib $fs/usr
45 }