From 8d0abd16e01210e61a50861a5ba62977a2944964 Mon Sep 17 00:00:00 2001 From: Kai Stian Olstad Date: Fri, 29 Sep 2023 17:53:11 +0200 Subject: [PATCH] New package: python3-pywlroots-0.16-0.16.5 --- srcpkgs/python3-pywlroots-0.16/template | 37 +++++++++++++++++++++++++ srcpkgs/python3-pywlroots-0.16/update | 1 + 2 files changed, 38 insertions(+) create mode 100644 srcpkgs/python3-pywlroots-0.16/template create mode 100644 srcpkgs/python3-pywlroots-0.16/update diff --git a/srcpkgs/python3-pywlroots-0.16/template b/srcpkgs/python3-pywlroots-0.16/template new file mode 100644 index 00000000000..baba8ca525d --- /dev/null +++ b/srcpkgs/python3-pywlroots-0.16/template @@ -0,0 +1,37 @@ +# Template file for 'python3-pywlroots-0.16' +pkgname=python3-pywlroots-0.16 +version=0.16.5 +revision=1 +build_style=python3-pep517 +hostmakedepends="python3-setuptools python3-cffi python3-pywayland python3-xkbcommon + python3-wheel python3-devel wlroots${pkgname##*-}-devel" +makedepends="python3-devel python3-cffi wlroots${pkgname##*-}-devel" +depends="python3-pywayland python3-xkbcommon python3-cffi" +short_desc="Python binding to the wlroots ${pkgname##*-} using cffi" +maintainer="Orphaned " +license="MIT" +homepage="https://github.com/flacjacket/pywlroots" +distfiles="${PYPI_SITE}/p/pywlroots/pywlroots-${version}.tar.gz" +checksum=5b8dd10897a4b6e9a0bcef4adcade61d1d418b2657b078f87cdd849069490a14 +conflicts="python3-pywlroots-0.15" + +pre_build() { + [ "$CROSS_BUILD" ] || return 0 + ( + rm -rf wlroots/__pycache__ + CC="$BUILD_CC" + CFLAGS="$BUILD_CFLAGS" + LDFLAGS="$BUILD_LDFLAGS" + unset LDSHARED + unset PYTHON_CONFIG + unset PYTHONPATH + unset PYPREFIX + unset _PYTHON_SYSCONFIGDATA_NAME + python3 wlroots/ffi_build.py + rm -f wlroots/_ffi.o wlroots/_ffi.cpython.*.so + ) +} + +post_install() { + vlicense LICENSE +} diff --git a/srcpkgs/python3-pywlroots-0.16/update b/srcpkgs/python3-pywlroots-0.16/update new file mode 100644 index 00000000000..47f3aeabd59 --- /dev/null +++ b/srcpkgs/python3-pywlroots-0.16/update @@ -0,0 +1 @@ +pattern="[v_-]\K\Q${pkgname##*-}.\E.*(?=\.tar\.gz)"