forked from void-linux/void-packages
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New package: python3-pywlroots-0.15-0.15.24
Close void-linux#45429
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Template file for 'python3-pywlroots-0.15' | ||
pkgname=python3-pywlroots-0.15 | ||
version=0.15.24 | ||
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="Đoàn Trần Công Danh <congdanhqx@gmail.com>" | ||
license="MIT" | ||
homepage="https://github.com/flacjacket/pywlroots" | ||
distfiles="${PYPI_SITE}/p/pywlroots/pywlroots-${version}.tar.gz" | ||
checksum=4ef621c6201b2be9a970413dcbbf561fde9dcde0e7bc8d313da53149842ac871 | ||
|
||
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 | ||
) | ||
} |