-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify PKGBUILD to adapt to build on archlinux for DTK6. Log: add makepkg support for dtk6
- Loading branch information
Showing
1 changed file
with
15 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,38 @@ | ||
# Maintainer: justforlxz <[email protected]> | ||
pkgname=dtkgui-git | ||
pkgver=5.5.22.r8.g6ef1509 | ||
pkgname=dtk6gui-git | ||
pkgver=6.0.0 | ||
pkgrel=1 | ||
sourcename=dtkgui | ||
sourcename=dtk6gui | ||
sourcetars=("$sourcename"_"$pkgver".tar.xz) | ||
sourcedir="$sourcename" | ||
pkgdesc='Deepin Toolkit, gui module for DDE look and feel' | ||
arch=('x86_64' 'aarch64') | ||
url="https://github.com/linuxdeepin/dtkgui" | ||
url="https://github.com/linuxdeepin/dtk6gui" | ||
license=('LGPL3') | ||
depends=('dtkcore-git' 'dtkcommon-git' 'qt5-svg' 'libqtxdg' 'freeimage' 'librsvg') | ||
depends=('dtk6core-git' 'dtkcommon-git' 'gcc-libs' 'qt6-base' 'qt6-svg' 'freeimage' 'librsvg') | ||
# INFO: you can disable freeimage not to support RAW images | ||
# Then set DTK_DISABLE_EX_IMAGE_FORMAT=OFF | ||
makedepends=('git' 'qt5-tools' 'gtest' 'gmock' 'ninja' 'cmake' 'doxygen') | ||
conflicts=('dtkgui') | ||
provides=('dtkgui') | ||
makedepends=('git' 'qt6-tools' 'gtest' 'gmock' 'ninja' 'cmake' 'doxygen' 'pkg-config' 'gcc') | ||
conflicts=('dtk6gui') | ||
provides=('dtk6gui') | ||
groups=('deepin-git') | ||
source=("${sourcetars[@]}") | ||
sha512sums=('SKIP') | ||
|
||
|
||
build() { | ||
cd $sourcedir | ||
version=$(echo $pkgver | awk -F'[+_~-]' '{print $1}') | ||
cmake -GNinja \ | ||
-DMKSPECS_INSTALL_DIR=lib/qt/mkspecs/modules/ \ | ||
-DBUILD_DOCS=ON \ | ||
-DMKSPECS_INSTALL_DIR=lib/qt6/mkspecs/modules/ \ | ||
-DBUILD_DOCS=OFF \ | ||
-DDTK_DISABLE_LIBRSVG=ON \ | ||
-DQCH_INSTALL_DESTINATION=share/doc/qt \ | ||
-DDTK_DISABLE_LIBXDG=ON \ | ||
-DQCH_INSTALL_DESTINATION=share/doc/qt6 \ | ||
-DCMAKE_INSTALL_LIBDIR=lib \ | ||
-DCMAKE_INSTALL_PREFIX=/usr \ | ||
-DCMAKE_BUILD_TYPE=Release | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DDTK_VERSION=$version | ||
ninja | ||
# INFO: Another cmake option is DTK_DISABLE_EX_IMAGE_FORMAT | ||
# If you not want to support RAW images, set it to off | ||
|