2022-06-20 13:47:48 +08:00
|
|
|
# Maintainer: justforlxz <justforlxz@gmail.com>
|
|
|
|
|
pkgname=dtkwidget-git
|
|
|
|
|
pkgver=5.5.45.r1.gbc050fca
|
|
|
|
|
pkgrel=1
|
2023-03-17 11:19:53 +08:00
|
|
|
sourcename=dtkwidget
|
|
|
|
|
sourcetars=("$sourcename"_"$pkgver".tar.xz)
|
|
|
|
|
sourcedir="$sourcename"
|
2022-06-20 13:47:48 +08:00
|
|
|
pkgdesc='Deepin graphical user interface library'
|
|
|
|
|
arch=('x86_64' 'aarch64')
|
|
|
|
|
url="https://github.com/linuxdeepin/dtkwidget"
|
|
|
|
|
license=('LGPL3')
|
2023-04-14 01:38:08 +08:00
|
|
|
depends=('dtkcore-git' 'dtkgui-git' 'qt5-svg'
|
2023-03-17 11:19:53 +08:00
|
|
|
'qt5-x11extras' 'dtkcommon-git' 'startup-notification')
|
|
|
|
|
makedepends=('git' 'qt5-tools' 'gtest' 'ninja' 'cmake' 'doxygen')
|
2022-06-20 13:47:48 +08:00
|
|
|
provides=('dtkwidget')
|
|
|
|
|
conflicts=('dtkwidget')
|
|
|
|
|
groups=('deepin-git')
|
2023-03-17 11:19:53 +08:00
|
|
|
source=("${sourcetars[@]}")
|
2022-06-20 13:47:48 +08:00
|
|
|
sha512sums=('SKIP')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build() {
|
2023-03-17 11:19:53 +08:00
|
|
|
cd $sourcedir
|
2023-04-20 00:42:24 +08:00
|
|
|
cmake . -GNinja \
|
2023-01-15 16:03:31 +08:00
|
|
|
-DMKSPECS_INSTALL_DIR=lib/qt/mkspecs/modules/\
|
2022-08-29 15:23:57 +08:00
|
|
|
-DBUILD_PLUGINS=OFF \
|
2022-08-26 16:43:09 +08:00
|
|
|
-DBUILD_DOCS=ON \
|
2023-01-15 16:03:31 +08:00
|
|
|
-DQCH_INSTALL_DESTINATION=share/doc/qt \
|
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
2022-08-19 13:32:38 +08:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
|
|
|
ninja
|
2022-06-20 13:47:48 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
package() {
|
2023-03-17 11:19:53 +08:00
|
|
|
cd $sourcedir
|
2022-08-19 13:32:38 +08:00
|
|
|
DESTDIR="$pkgdir" ninja install
|
2022-06-20 13:47:48 +08:00
|
|
|
}
|