Debian Codegraph @

archlinux/PKGBUILD

raw
1 # Maintainer: justforlxz <[email protected]>
2 pkgname=dtkgui-git
3 pkgver=5.5.22.r8.g6ef1509
4 pkgrel=1
5 sourcename=dtkgui
6 sourcetars=("$sourcename"_"$pkgver".tar.xz)
7 sourcedir="$sourcename"
8 pkgdesc='Deepin Toolkit, gui module for DDE look and feel'
9 arch=('x86_64' 'aarch64')
10 url="https://github.com/linuxdeepin/dtkgui"
11 license=('LGPL3')
12 depends=('dtkcore-git' 'dtkcommon-git' 'qt5-svg' 'libqtxdg' 'freeimage' 'librsvg' 'qt5-wayland')
13 # INFO: you can disable freeimage not to support RAW images
14 # Then set DTK_DISABLE_EX_IMAGE_FORMAT=OFF
15 makedepends=('git' 'qt5-tools' 'gtest' 'gmock' 'ninja' 'cmake' 'doxygen' 'extra-cmake-modules')
16 conflicts=('dtkgui')
17 provides=('dtkgui')
18 groups=('deepin-git')
19 source=("${sourcetars[@]}")
20 sha512sums=('SKIP')
21
22
23 build() {
24 cd $sourcedir
25 cmake -GNinja \
26 -DMKSPECS_INSTALL_DIR=lib/qt/mkspecs/modules/ \
27 -DBUILD_DOCS=ON \
28 -DQCH_INSTALL_DESTINATION=share/doc/qt \
29 -DCMAKE_INSTALL_LIBDIR=lib \
30 -DCMAKE_INSTALL_PREFIX=/usr \
31 -DCMAKE_BUILD_TYPE=Release
32 ninja
33 # INFO: Another cmake option is DTK_DISABLE_EX_IMAGE_FORMAT
34 # If you not want to support RAW images, set it to off
35 }
36
37 package() {
38 cd $sourcedir
39 DESTDIR="$pkgdir" ninja install
40 }