blob: 87770b48df95bbb1571995a13929ec2e874f7fc5 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Maintainer: robinpie <robin413@protonmail.com>
pkgname=atlantik-git
_pkgname=atlantik
pkgver=3.80.3.r753.gf4e092c
pkgrel=2
pkgdesc='KDE client for playing Monopoly-like board games on the monopd network'
arch=('x86_64')
url='https://apps.kde.org/atlantik/'
license=('GPL-2.0-only' 'LGPL-2.1-only')
depends=(
'libstdc++'
'glibc'
'hicolor-icon-theme'
'kconfig'
'kconfigwidgets'
'kcoreaddons'
'kcrash'
'kdbusaddons'
'ki18n'
'kiconthemes'
'knotifications'
'knotifyconfig'
'kwidgetsaddons'
'kxmlgui'
'libkdegames'
'qt6-base'
)
makedepends=(
'cmake'
'extra-cmake-modules'
'git'
'kdoctools'
)
provides=("${pkgname%-git}=${pkgver}")
conflicts=('atlantik')
source=("${_pkgname}::git+https://invent.kde.org/games/atlantik.git")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgname"
git describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
# Arch Linux kdoctools ships xsl/pt_br.xml but KDE's kde-include-common.xsl
# constructs the path as xsl/<lang>.xml from the document's lang entity, producing
# xsl/pt-BR.xml. Redirect that URI via an XML catalog so xsltproc resolves it
# correctly without needing to modify any system files.
cat > "$srcdir/kdoctools-pt-BR-catalog.xml" << 'EOF'
<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
"http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<uri name="file:///usr/share/kf6/kdoctools/customization/xsl/pt-BR.xml"
uri="file:///usr/share/kf6/kdoctools/customization/xsl/pt_br.xml"/>
</catalog>
EOF
}
build() {
# Include custom catalog after system one so pt-BR.xml URI gets remapped
export XML_CATALOG_FILES="/etc/xml/catalog $srcdir/kdoctools-pt-BR-catalog.xml"
cmake -B build -S "$_pkgname" \
-DBUILD_TESTING=OFF \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|