Skip to content

Commit

Permalink
feat: add makepkg support for dtk6
Browse files Browse the repository at this point in the history
Modify PKGBUILD to adapt to build on archlinux for DTK6.

Log: add makepkg support for dtk6
  • Loading branch information
asterwyx committed Oct 6, 2023
1 parent 4453259 commit 142848a
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions archlinux/PKGBUILD
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
Expand Down

0 comments on commit 142848a

Please sign in to comment.