void-packages/srcpkgs/dtkwidget/template
Jürgen Buchmüller 073d451129 dtkwidget: fix build w/ gcc10
Also cross builds now w/o gsettings-qt in the hostmakedepends.
2020-09-01 14:44:02 +02:00

37 lines
1.2 KiB
Bash

# Template file for 'dtkwidget'
pkgname=dtkwidget
version=2.1.1
revision=2
build_style=qmake
configure_args="DBUS_VERSION_0_4_2=YES LIB_INSTALL_DIR=/usr/lib VERSION=${version}"
hostmakedepends="pkg-config qt5-host-tools qt5-qmake"
makedepends="dde-qt-dbus-factory-devel dtkcore-devel gsettings-qt-devel
librsvg-devel pulseaudio-devel qt5-multimedia-devel qt5-svg-devel
qt5-x11extras-devel startup-notification-devel xcb-util-devel"
short_desc="Deepin Tool Kit Widget"
maintainer="John <me@johnnynator.dev>"
license="GPL-3.0-or-later"
homepage="https://github.com/linuxdeepin/dtkwidget"
changelog="https://github.com/linuxdeepin/dtkwidget/blob/${version}/CHANGELOG.md"
distfiles="https://github.com/linuxdeepin/dtkwidget/archive/${version}.tar.gz"
checksum=451c86d93a3336df61418e1d41ec6e976d6a710c967ac74379a353b33e58c914
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" dtkcore-devel qt5-multimedia-devel
qt5-x11extras-devel qt5-svg-devel"
fi
CXXFLAGS="-fcommon"
dtkwidget-devel_package() {
depends="${sourcepkg}>=${version}_${revision} dtkcore-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/cmake
vmove usr/lib/qt5/mkspecs
vmove "usr/lib/libdtk-*"
vmove "usr/lib/*.so"
}
}