summaryrefslogblamecommitdiff
path: root/user/kio-extras/APKBUILD
blob: 868fb9e329ae3397223c732d17c138d144d85ff9 (plain) (tree)
1
2
3
4


                                                  
              











































                                                                                          
                                                                                                                                                                        
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=kio-extras
pkgver=17.08.2
pkgrel=0
pkgdesc="KIO plugins for various data tasks"
url="https://www.kde.org/"
arch="all"
license="LGPL-2.1"
options="!check"  # Requires fully running KDE system to test.
depends=""
depends_dev="qt5-qtbase-dev qt5-qtsvg-dev karchive-dev kconfig-dev kio-dev
	kconfigwidgets-dev kcoreaddons-dev kdbusaddons-dev kdoctools-dev
	kiconthemes-dev ki18n-dev solid-dev kbookmarks-dev kguiaddons-dev
	kdnssd-dev kpty-dev kactivities-dev phonon-dev libssh2-dev
	libtirpc-dev taglib-dev"
makedepends="$depends_dev cmake extra-cmake-modules"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://download.kde.org/stable/applications/$pkgver/src/kio-extras-$pkgver.tar.xz"
builddir="$srcdir/kio-extras-$pkgver"

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" \
		${CMAKE_CROSSOPTS}
	make
}

check() {
	cd "$builddir"
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

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

sha512sums="dcdef6f3079218b283cbfabcad9a7981ba969abcb7cfcc8c4694a1767cceaa5dc81e189dd991ca01d20913a8ce59c31d44a7ac2d1826605d9aac6a99e9a37d9b  kio-extras-17.08.2.tar.xz"