diff --git a/srcpkgs/python3-pytaglib/template b/srcpkgs/python3-pytaglib/template index 98121d054b9..b398e0218f1 100644 --- a/srcpkgs/python3-pytaglib/template +++ b/srcpkgs/python3-pytaglib/template @@ -1,10 +1,10 @@ # Template file for 'python3-pytaglib' pkgname=python3-pytaglib version=1.4.6 -revision=1 +revision=2 wrksrc="pytaglib-${version}" build_style=python3-module -hostmakedepends="python3-setuptools" +hostmakedepends="python3-setuptools python3-Cython" makedepends="python3-devel taglib-devel" short_desc="Python bindings for the TagLib C++ library" maintainer="Stefano Ragni " @@ -12,3 +12,9 @@ license="GPL-3.0-or-later" homepage="https://github.com/supermihi/pytaglib" distfiles="https://github.com/supermihi/pytaglib/archive/v${version}.tar.gz" checksum=360b12d5b4c948cebf75acf86fac6b33a3f044eab6fcfe8949a1cd0f9c22bd25 + +post_extract() { + # Make sure Cython generates an up-to-date source file + rm src/taglib.cpp + cythonize src/taglib.pyx +}