summaryrefslogblamecommitdiff
path: root/user/kactivities/APKBUILD
blob: 254a1e1afaeb64e3abdd9122b07318e9e8ee1712 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                  
             
        



                                                                       
                           

                                                                       

                                                                    
          
                                       
                                                                                          


















                                                                                          
                                     













                                      
                                                                                                                                                                        
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=kactivities
pkgver=5.41.0
pkgrel=1
pkgdesc="Runtime and library to organize work into separate activities"
url="https://api.kde.org/frameworks/kactivities/html/index.html"
arch="all"
license="GPL-2.0 LGPL-2.1"
depends="kactivitymanagerd"
depends_dev="qt5-qtbase-dev qt5-qtdeclarative-dev boost-dev kconfig-dev
	kcoreaddons-dev kwindowsystem-dev"
makedepends="$depends_dev cmake extra-cmake-modules doxygen graphviz
	qt5-qttools-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://download.kde.org/stable/frameworks/${pkgver%.*}/kactivities-$pkgver.tar.xz"
builddir="$srcdir/kactivities-$pkgver/build"

prepare() {
	mkdir -p "$builddir"
	default_prepare
}

build() {
	cd "$builddir"
	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" \
		-DBUILD_QCH:BOOL=ON \
		${CMAKE_CROSSOPTS} ..
	make
}

check() {
	cd "$builddir"
	make test
}

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

sha512sums="942fe93f27ca1549be881dce8374f32b04cadaf4690a9bb966189a4daeec0768366f465f5fffbd26d48f4102ebd7d7dcc0482ed177d372473b232f07e22960d7  kactivities-5.41.0.tar.xz"