blob: cb89482a0b827ad0ffe9746be38193d4242500ce (
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
|
# Maintainer: Ha Ma <0xcccc@bupt.cn>
_name=kholidays
pkgname=${_name}5-cn
base_pkgver=5.114.0
pkgver=${base_pkgver}_20240209
pkgrel=1
pkgdesc='KDE library for regional holiday information(CN)'
arch=(x86_64)
url='https://community.kde.org/Frameworks'
license=(LGPL)
depends=(qt5-base)
makedepends=(extra-cmake-modules qt5-declarative qt5-tools qt5-doc doxygen python)
optdepends=('qt5-declarative: QML bindings')
conflicts=("$_name<1:5.111" "kholidays5")
replaces=("$_name<1:5.111" "kholidays5")
provides=("kholidays5")
groups=(kf5)
source=(
https://download.kde.org/stable/frameworks/${base_pkgver%.*}/$_name-$base_pkgver.tar.xz
https://github.com/0xcccccccccccc/kholidays_cn/releases/download/20240209/holiday_cn_zh-cn
)
sha256sums=('be4af6625e80852cb7bc8cdbe2bdd56ccf3868644cbfb87d3494964f5f6f28a7'
'711b0496a6b0724b11e382c16b741ef481297228c42cfad4f05eb8256d7bd60f')
build() {
cp $srcdir/holiday_cn_zh-cn $srcdir/kholidays-$base_pkgver/holidays/plan2/
cmake -B build -S $_name-$base_pkgver \
-DBUILD_TESTING=OFF \
-DBUILD_QCH=ON
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|