Date: Monday, May 3, 2021 @ 07:19:47 Author: arojas Revision: 414210 Update to 7.0.0
Modified: mlt/trunk/PKGBUILD ----------+ PKGBUILD | 37 +++++++++++-------------------------- 1 file changed, 11 insertions(+), 26 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-05-03 06:54:53 UTC (rev 414209) +++ PKGBUILD 2021-05-03 07:19:47 UTC (rev 414210) @@ -7,11 +7,11 @@ # Contributor: Gustavo Alvarez <[email protected]> pkgname=mlt -pkgver=6.26.1 +pkgver=7.0.0 pkgrel=1 -pkgdesc="An open source multimedia framework" +pkgdesc='An open source multimedia framework' arch=(x86_64) -url="https://www.mltframework.org" +url='https://www.mltframework.org' license=(GPL) depends=(libebur128) optdepends=('sdl_image: SDL1 plugin' @@ -37,32 +37,17 @@ conflicts=(python-mlt) provides=(python-mlt) replaces=(python-mlt) -source=($pkgname-$pkgver.tar.gz::https://github.com/mltframework/mlt/archive/v$pkgver.tar.gz) -sha256sums=('8a484bbbf51f33e25312757531f3ad2ce20607149d20fcfcb40a3c1e60b20b4e') +source=(https://github.com/mltframework/mlt/archive/v$pkgver/$pkgname-$pkgver.tar.gz) +sha256sums=('91359ff8b911dbd879c687ed4cda10a6dce07786bfa0b3ba9f385e7a6a7a354b') build() { - cd mlt-$pkgver - - ./configure --prefix=/usr \ - --avformat-swscale \ - --enable-gpl \ - --enable-gpl3 \ - --enable-opencv - make - -# python bindings - cd src/swig/python - ./build + cmake -B build -S $pkgname-$pkgver \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DMOD_OPENCV=ON \ + -DSWIG_PYTHON=ON + cmake --build build } package() { - cd mlt-$pkgver - make DESTDIR="$pkgdir" install - -# Install python bindings - _pythonpath=`python -c "from sysconfig import get_path; print(get_path('platlib'))"` - cd src/swig/python - mkdir -p "$pkgdir/$_pythonpath" - install -m755 mlt.py "$pkgdir/$_pythonpath" - install -m755 _mlt.so "$pkgdir/$_pythonpath" + DESTDIR="$pkgdir" cmake --install build }
