diff --git a/contrib/python-meson/template.py b/contrib/python-meson/template.py new file mode 100644 index 00000000000..40552837f37 --- /dev/null +++ b/contrib/python-meson/template.py @@ -0,0 +1,30 @@ +pkgname = "python-meson" +pkgver = "0.15.0" +pkgrel = 0 +build_style = "python_pep517" +hostmakedepends = [ + "meson", + "patchelf", + "python-build", + "python-installer", + "python-pyproject-metadata", + "python-wheel", +] +depends = ["meson", "patchelf", "python-pyproject-metadata"] +checkdepends = [ + "git", + "python-cython", + "python-devel", + "python-pytest", + "python-pytest-mock", +] +pkgdesc = "Meson PEP 517 Python build backend" +maintainer = "Duncan Bellamy " +license = "MIT" +url = "https://meson-python.readthedocs.io/en/latest/index.html" +source = f"https://github.com/mesonbuild/meson-python/archive/refs/tags/{pkgver}.tar.gz" +sha256 = "7c29eb0d17bb7813f5e5c89f5df5f56eda446e263b4d4a9f5f286548a0eb385f" + + +def post_install(self): + self.install_license("LICENSE")