blob: c3ec0029a4f6c1359373560d51ef978a5ce254fd (
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
41
42
43
44
45
46
47
|
# Maintainer: justforlxz <justforlxz@gmail.com>
pkgname=dtk6core-git
pkgver=6.0.18.r0.g3561f0a
pkgrel=1
sourcename=dtk6core
sourcetars=("$sourcename"_"$pkgver".tar.xz)
sourcedir="$sourcename"
pkgdesc='DTK6 core modules'
arch=('x86_64' 'aarch64')
url="https://github.com/linuxdeepin/dtk6core"
license=('LGPL3')
depends=('deepin-desktop-base' 'gcc-libs' 'qt6-base' 'dtkcommon' 'dtk6log' 'lshw' 'uchardet' 'icu' 'libsystemd' 'spdlog')
makedepends=('git' 'qt6-tools' 'ninja' 'cmake' 'doxygen' 'gcc' 'pkg-config')
conflicts=('dtk6core')
provides=('dtk6core')
groups=('deepin-git')
source=("git+https://github.com/linuxdeepin/dtk6core")
sha512sums=('SKIP')
pkgver() {
cd $sourcedir
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd $sourcedir
version=$(git describe --long --tags | awk -F'[+_~-]' '{print $1}')
cmake \
-GNinja \
-DMKSPECS_INSTALL_DIR=lib/qt6/mkspecs/modules \
-DBUILD_DOCS=OFF \
-DBUILD_EXAMPLES=OFF \
-DQCH_INSTALL_DESTINATION=share/doc/qt6 \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DD_DSG_APP_DATA_FALLBACK=/var/dsg/appdata \
-DBUILD_WITH_SYSTEMD=ON \
-DDTK_VERSION=$version
ninja
}
package() {
cd $sourcedir
DESTDIR="$pkgdir" ninja install
}
|