blob: 4bd98ec98f8031ebedddfc8898a13499ae63922a (
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
72
73
74
75
76
77
78
|
# Maintainer: blacktav <blacktav at gmail dot com>
# Maintainer: Lufalas <lufalas at posteo dot com>
# Contributor: based on unknown abandoned pokerth-final from 2012-12-27
# Patches: xx55tt, viktoracoric, Mailaender, jlocash
pkgname=pokerth
pkgver=2.1.11
pkgrel=1
pkgdesc="Client to online Poker game written in C++/Qt"
arch=('x86_64')
url="http://www.pokerth.net/"
license=('AGPL-3.0-only' 'LicenseRef-custom')
depends=(
'boost-libs'
'openssl'
'protobuf'
'qt6-base'
'qt6-declarative'
'qt6-multimedia'
)
makedepends=(
'boost'
'cmake'
'ninja'
'qt6-svg'
'qt6-tools'
'qt6-websockets'
)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/pokerth/pokerth/archive/refs/tags/v${pkgver}.tar.gz")
md5sums=('a1ed45d8d95b87747ad8a3a3186f5e5f')
prepare() {
sed -i \
-e 's|QT_PLUGIN_PATH=/usr/lib/x86_64-linux-gnu/qt6/plugins[[:space:]]*||' \
-e 's|QML_IMPORT_PATH=/usr/lib/x86_64-linux-gnu/qt6/qml[[:space:]]*||' \
"$srcdir/$pkgname-$pkgver"/pokerth{,_qml}.desktop
}
build() {
local cmake_options=(
-B build
-S ${pkgname}-${pkgver}
-G Ninja
-DCMAKE_INSTALL_PREFIX=/usr
-DCMAKE_BUILD_TYPE:STRING=None
-DCMAKE_C_FLAGS="${CFLAGS} -DNDEBUG"
-DCMAKE_CXX_FLAGS="${CXXFLAGS} -DNDEBUG"
-Wno-author
)
cmake "${cmake_options[@]}"
cmake --build build --target all --
}
package() {
DESTDIR="${pkgdir}" cmake --install build
cd "${pkgname}-${pkgver}"
install -Dm644 docs/pokerth.1 "${pkgdir}/usr/share/man/man1/pokerth.1"
mkdir -p "${pkgdir}/usr/share/doc/${pkgname}"
install -Dm644 docs/gui_styling_howto.txt "${pkgdir}/usr/share/doc/pokerth/"
install -Dm644 docs/qml_client_keyboard_shortcuts.md "${pkgdir}/usr/share/doc/pokerth/"
install -Dm644 docs/server_activity_add_client_platform.sql "${pkgdir}/usr/share/doc/pokerth/"
install -Dm644 docs/server_activity_schema.sql "${pkgdir}/usr/share/doc/pokerth/"
install -Dm644 docs/server_live_stats_schema.sql "${pkgdir}/usr/share/doc/pokerth/"
install -Dm644 docs/server_shadow_mute_schema.sql "${pkgdir}/usr/share/doc/pokerth/"
install -Dm644 docs/server_pending_pm_schema.sql "${pkgdir}/usr/share/doc/pokerth/"
install -Dm644 docs/server_setup_howto.txt "${pkgdir}/usr/share/doc/pokerth/"
install -Dm644 docs/third_party_services.md "${pkgdir}/usr/share/doc/pokerth/"
install -Dm644 docs/widget_client_keyboard_shortcuts.md "${pkgdir}/usr/share/doc/pokerth/"
install -Dm644 data/data-copyright.txt "${pkgdir}/usr/share/licenses/pokerth/LICENSE"
install -Dm644 pokerth.svg "${pkgdir}/usr/share/icons/hicolor/scalable/apps/pokerth.svg"
rm "${pkgdir}/usr/share/pokerth/data/data-copyright.txt"
}
|