summaryrefslogblamecommitdiff
path: root/user/oxygen-icons5/APKBUILD
blob: 6cbaa49a45923d561b9d20d3a679e51ef3600c98 (plain) (tree)









































                                                                                                                                                                          
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=oxygen-icons5
pkgver=5.51.0
pkgrel=0
pkgdesc="The KDE Oxygen icon set"
url="https://www.kde.org/"
arch="noarch"
options="!check"  # fdupes, same thing as breeze-icons
license="LGPL-2.1"
depends=""
makedepends="cmake extra-cmake-modules qt5-qtbase-dev"
subpackages=""
source="https://download.kde.org/stable/frameworks/5.51/oxygen-icons5-$pkgver.tar.xz"

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="7ac19cf040604211a164618c9778db435234a7c05758a4915048308f1d411ee74f827496df238a0246cab6c475cc0b35fd02e42092875c069f048df088cf7b52  oxygen-icons5-5.51.0.tar.xz"