37 lines
1.1 KiB
Bash
37 lines
1.1 KiB
Bash
# Template file for 'dde-qt-dbus-factory'
|
|
pkgname=dde-qt-dbus-factory
|
|
version=1.0.4
|
|
revision=1
|
|
build_style=qmake
|
|
hostmakedepends="qt5-qmake python"
|
|
makedepends="qt5-devel"
|
|
short_desc="Auto-generated Qt5 D-Bus code used by DDE"
|
|
maintainer="John <johnz@posteo.net>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://github.com/linuxdeepin/dde-qt-dbus-factory"
|
|
changelog="https://github.com/linuxdeepin/dde-qt-dbus-factory/blob/${version}/CHANGELOG.md"
|
|
distfiles="https://github.com/linuxdeepin/dde-qt-dbus-factory/archive/${version}.tar.gz"
|
|
checksum=9281ee24d606899e51bc23ba0d1140effaa9c900486255e5083d6f9f06f6f8cc
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" qt5-devel dde-qt-dbus-factory-devel"
|
|
fi
|
|
|
|
pre_configure() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
sed -i -e 's/os.path.join(project_root, "bin", "qdbusxml2cpp-fix")/os.path.join("\/usr", "bin", "qdbusxml2cpp-fix")/' libdframeworkdbus/generate_code.py
|
|
fi
|
|
}
|
|
|
|
dde-qt-dbus-factory-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/cmake
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vbin bin/qdbusxml2cpp-fix
|
|
}
|
|
}
|