[arch-commits] Commit in vidcutter/trunk (PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 16 08:29:42 UTC 2020


    Date: Monday, November 16, 2020 @ 08:29:42
  Author: foutrelis
Revision: 755159

Fix build with Python 3.9

Modified:
  vidcutter/trunk/PKGBUILD

----------+
 PKGBUILD |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-16 08:07:54 UTC (rev 755158)
+++ PKGBUILD	2020-11-16 08:29:42 UTC (rev 755159)
@@ -9,10 +9,16 @@
 url='https://github.com/ozmartian/vidcutter'
 license=(GPL3)
 depends=(ffmpeg mediainfo mpv python-opengl python-pyqt5 python-simplejson)
-makedepends=(python-setuptools)
+makedepends=(python-setuptools cython)
 source=(https://github.com/ozmartian/$pkgname/archive/$pkgver/$pkgname-$pkgver.tar.gz)
 sha256sums=('c09be7eceaf42ff7211fe3b8125279c4fec7f7d251d272b61d579e426bd4e2c2')
 
+prepare() {
+  cd $pkgname-$pkgver
+  # remove mpv.c so it gets regenerated by current cython
+  rm vidcutter/libs/pympv/mpv.c
+}
+
 build() {
   cd $pkgname-$pkgver
   python3 setup.py build
@@ -19,6 +25,6 @@
 }
 
 package() {
-  cd $pkgname-$pkgver 
+  cd $pkgname-$pkgver
   python3 setup.py install --root="$pkgdir" --optimize=1
 }



More information about the arch-commits mailing list