void-packages/srcpkgs/python3-pywlroots-0.16/template

39 lines
1.1 KiB
Bash

# Template file for 'python3-pywlroots-0.16'
pkgname=python3-pywlroots-0.16
version=0.16.6
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 <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/flacjacket/pywlroots"
distfiles="${PYPI_SITE}/p/pywlroots/pywlroots-${version}.tar.gz"
checksum=2137f5b802d0d1924c799e306c2ed5a842fd2dda0aebbbea4695c3e8b4d68d41
conflicts="python3-pywlroots-0.15>=0"
replaces="python3-pywlroots-0.15>=0"
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
}