python-dbus: split python3-dbus-devel

Avoid unnecessary python (2) dependency when doing development
This commit is contained in:
Đoàn Trần Công Danh 2021-03-05 07:56:56 +07:00
parent 8ba15d4f90
commit a02b45c2e3
2 changed files with 11 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'python-dbus'
pkgname=python-dbus
version=1.2.16
revision=2
revision=3
wrksrc="dbus-python-${version}"
build_style=gnu-configure
hostmakedepends="pkg-config python-devel python3-devel"
@ -59,9 +59,16 @@ python3-dbus_package() {
vmove usr/lib/python3*
}
}
# This package used to provide both Python 2 and Python 3 development files
# Those files are now in python3-dbus-devel
python-dbus-devel_package() {
depends="python-devel python3-devel
python-dbus>=${version}_${revision} python3-dbus>=${version}_${revision}"
depends="python-devel python-dbus>=${version}_${revision}
python3-dbus-devel>=${version}_${revision}"
build_style=meta
short_desc+=" - development files (Python 2 meta)"
}
python3-dbus-devel_package() {
depends="python3-devel python3-dbus>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include

1
srcpkgs/python3-dbus-devel Symbolic link
View File

@ -0,0 +1 @@
python-dbus