summaryrefslogblamecommitdiff
path: root/user/oxygen/APKBUILD
blob: 8fe788434b0f0a48e72368a49cb6f7903164c7c6 (plain) (tree)
1
2
3
4


                                                  
             








































                                                                                          
                                                                                                                                                                   
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=oxygen
pkgver=5.12.5
pkgrel=0
pkgdesc="'Oxygen' theme for KDE"
url="https://www.kde.org/"
arch="all"
license="LGPL-2.1"
depends=""
depends_dev="qt5-qtbase-dev ki18n-dev kconfig-dev kguiaddons-dev kservice-dev
	kwidgetsaddons-dev kcompletion-dev frameworkintegration-dev
	kwindowsystem-dev kwayland-dev kdecoration-dev kcmutils-dev"
makedepends="$depends_dev cmake extra-cmake-modules libxcb-dev"
install=""
subpackages="$pkgname-dev $pkgname-lang"
source="https://download.kde.org/stable/plasma/$pkgver/oxygen-$pkgver.tar.xz"
builddir="$srcdir/oxygen-$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="92acb2cc2033a8b07a0ac75772f696f5c1196e0c5a424ba6146d576bc956fcfc172b4a65a79551b2d43be4b56d5289bee091ebb837fe40dc60f076ca7d5898b4  oxygen-5.12.5.tar.xz"