pmaports/temp/plasma-sdk/APKBUILD

43 lines
1.3 KiB
Text

# Forked from Alpine to build Plasma 5.17 pre-release
pkgname=plasma-sdk
pkgver=5.16.90
pkgrel=0
pkgdesc="Applications useful for Plasma Development"
arch="all"
url="https://www.kde.org/workspaces/plasmadesktop/"
license="GPL-2.0-or-later"
depends="kirigami2"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtsvg-dev karchive-dev kcompletion-dev kconfig-dev kconfigwidgets-dev kcoreaddons-dev kdbusaddons-dev kdeclarative-dev ki18n-dev kiconthemes-dev kio-dev plasma-framework-dev kservice-dev ktexteditor-dev kwidgetsaddons-dev kdoctools-dev kparts-dev"
checkdepends="xvfb-run"
source="https://download.kde.org/unstable/plasma/$pkgver/$pkgname-$pkgver.tar.xz"
subpackages="$pkgname-doc $pkgname-lang"
options="!check" # broken with cross-compiling
prepare() {
default_prepare
mkdir "$builddir"/build
}
build() {
cd "$builddir"/build
cmake "$builddir" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
make
}
check() {
cd "$builddir"/build
# iconmodeltest is broken
CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "iconmodeltest"
}
package() {
cd "$builddir"/build
DESTDIR="$pkgdir" make install
}
sha512sums="1ae3fb451ad095ca1d89a5d751ee82aa0cdc07ce98b56d56438e6f72695e82ecf73dd62ab0c24f16bf965b4ecf5ae511c33f8f6400bbd6c9920f137ec283af65 plasma-sdk-5.16.90.tar.xz"