summaryrefslogtreecommitdiff
path: root/user/kopete/APKBUILD
blob: e915861d9c7bb07089788780343256ee34954732 (plain) (blame)
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
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=kopete
pkgver=22.04.2
pkgrel=0
pkgdesc="KDE Instant Messenger (IM) client"
url="https://kde.org/applications/internet/org.kde.kopete"
arch="all"
license="GPL-2.0+"
depends=""
makedepends="qt5-qtbase-dev cmake extra-cmake-modules phonon-dev kcmutils-dev
	kconfig-dev kcontacts-dev kcoreaddons-dev kcrash-dev kdbusaddons-dev
	kdelibs4support-dev kdoctools-dev kemoticons-dev khtml-dev ki18n-dev
	knotifyconfig-dev kparts-dev ktexteditor-dev kwallet-dev libkleo-dev
	kidentitymanagement-dev kpimtextedit-dev kdnssd-dev v4l-utils-dev
	glib-dev alsa-lib-dev qca-dev speex-dev gpgme-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.kde.org/stable/release-service/$pkgver/src/kopete-$pkgver.tar.xz"

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		${CMAKE_CROSSOPTS} \
		.
	make
}

check() {
	QT_QPA_PLATFORM=offscreen CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="f0e2d50f3e4f408d603721747945fef5bd6eb1034cd7a29058e77dc04edccbf29760dead8e8a7200bc74488b6a36bebbbd0f682677ca815c16aa93faffea4c50  kopete-22.04.2.tar.xz"