summaryrefslogblamecommitdiff
path: root/user/kopete/APKBUILD
blob: 8eb618417455b2fe703cc41b74f085c4683b7f01 (plain) (tree)











































                                                                                                                                                                    
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=kopete
pkgver=20.04.3
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="979f84c986f78aaab9bd23fb9e0df265ea8734d855b8370c93adbe037d6dfeb4271658dbd27c2b315b363731976a62750e2ed5dace45bc69e72c0645a533b5a0  kopete-20.04.3.tar.xz"