blob: 051350da0f0ad9025c6e24f1a8759e116a98e0f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: justforlxz <justforlxz@gmail.com>
pkgname=dtkgui-git
_pkgname=dtkgui
pkgver=5.6.22.r0.g01af1cb
pkgrel=1
pkgdesc='Deepin Toolkit, gui module for DDE look and feel'
arch=('x86_64' 'aarch64')
url="https://github.com/linuxdeepin/dtkgui"
license=('LGPL3')
depends=('dtkcore' 'librsvg' 'qt5-x11extras' 'libqtxdg' 'freeimage')
makedepends=('git' 'qt5-tools' 'dtkcommon' 'dtkcore' 'librsvg' 'qt5-x11extras' 'gtest' 'gmock' 'cmake' 'ninja' 'doxygen' 'libqtxdg' 'freeimage')
conflicts=('dtkgui')
provides=('dtkgui')
groups=('deepin-git')
source=("git+https://github.com/linuxdeepin/dtkgui.git")
sha512sums=('SKIP')
pkgver() {
cd $srcdir/$_pkgname
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd $srcdir/$_pkgname
cmake -B build -GNinja \
-DNOTPACKAGE=OFF \
-DMKSPECS_INSTALL_DIR=lib/qt/mkspecs/modules/ \
-DBUILD_DOCS=ON \
-DQCH_INSTALL_DESTINATION=share/doc/qt \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
cmake --build build
}
package() {
cd $srcdir/$_pkgname/build
DESTDIR="$pkgdir" ninja install
}
|