void-packages/srcpkgs/python3-pyqt6-qsci/template

38 lines
1.3 KiB
Bash

# Template file for 'python3-pyqt6-qsci'
# XXX Keep in sync with qscintilla-qt6
# Splited because pyqt6-qsci requires qscintilla-qt6 built at configure time.
pkgname=python3-pyqt6-qsci
version=2.14.1
revision=1
build_wrksrc=Python
build_style=sip-build
build_helper=qemu
hostmakedepends="qt6-base-devel qscintilla-qt6-devel python3-PyQt-builder
python3-pyqt6-bindings pkg-config"
makedepends="qscintilla-qt6-devel qt6-tools-devel python3-devel"
depends="python3-pyqt6"
short_desc="Qt6 port of Scintilla editor - Python 3 binding"
maintainer="Eloi Torrents <eloitor@duck.com>"
license="GPL-3.0-only"
homepage="https://www.riverbankcomputing.com/software/qscintilla/intro"
distfiles="https://www.riverbankcomputing.com/static/Downloads/QScintilla/${version}/QScintilla_src-${version}.tar.gz"
checksum=dfe13c6acc9d85dfcba76ccc8061e71a223957a6c02f3c343b30a9d43a4cdd4d
lib32disabled=yes
CXXFLAGS="$(printf " -I$XBPS_CROSS_BASE/usr/include/qt6/%s" QtWidgets QtPrintSupport)"
post_extract() {
rm -rf src
ln -sf pyproject-qt6.toml Python/pyproject.toml
}
python3-pyqt6-qsci-devel_package() {
lib32disabled=yes
short_desc+=" - development files"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove ${py3_sitelib}/PyQt6/bindings
vmove usr/share/qt6/qsci/api
}
}