archrelease: copy trunk to community-any
[ArchLinux/community.git] / kvirc / repos / community-x86_64 / PKGBUILD
blob6b0cd7ce40fc42b7920fef81d2d2413ff315d83d
1 # Maintainer: Balló György <ballogyor+arch at gmail dot com>
3 pkgname=kvirc
4 pkgver=5.0.0
5 pkgrel=8
6 pkgdesc='Qt based IRC client'
7 arch=('x86_64')
8 url='http://kvirc.net/'
9 license=('GPL2')
10 depends=('enchant' 'hicolor-icon-theme' 'qt5-multimedia' 'qt5-svg' 'qt5-x11extras')
11 makedepends=('cmake' 'ninja' 'python')
12 optdepends=('perl: scripting support'
13             'python: scripting support')
14 source=("ftp://ftp.kvirc.net/pub/kvirc/$pkgver/source/KVIrc-$pkgver.tar.bz2"
15         'kvirc.appdata.xml'
16         'python3.patch'
17         'qt5.15.patch')
18 sha256sums=('76cd4cdcaca5e4056f086cdcbb6122c2ca7e331d6e66c7ebc57d32565f626a65'
19             '433c6b2d36479ae2c4a0342dc9750ba79ffd9f4fa479f28740cd1c4303bc71da'
20             'dfa8586a849b1c74280b4203b45c24d3e9ad1f184ba09fe16c59febb64b1ca79'
21             '06c5df4fa2fded8b686beddf6824ff655aa6cd2164b1e8b07100418563d02e4e')
23 prepare() {
24   cd KVIrc-$pkgver
25   patch -Np1 -i ../python3.patch
26   patch -Np1 -i ../qt5.15.patch
29 build() {
30   cmake -S KVIrc-$pkgver -B build -G Ninja -DCMAKE_INSTALL_PREFIX='/usr' \
31     -DCMAKE_SKIP_RPATH=YES \
32     -DWANT_QTWEBKIT=OFF \
33     -DWANT_KDE=OFF \
34     -DWANT_PHONON=OFF
35   cmake --build build
38 package() {
39   DESTDIR="$pkgdir" cmake --install build
40   install -Dm644 $pkgname.appdata.xml "$pkgdir/usr/share/metainfo/$pkgname.appdata.xml"