From a9908d0c3242971c4a0d1508774fb9c70734ac78 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Thu, 3 Jan 2019 02:33:37 +0000 Subject: user/kpmcore: new package --- user/kpmcore/APKBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 user/kpmcore/APKBUILD (limited to 'user/kpmcore') diff --git a/user/kpmcore/APKBUILD b/user/kpmcore/APKBUILD new file mode 100644 index 000000000..102059e09 --- /dev/null +++ b/user/kpmcore/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: A. Wilcox +# Maintainer: A. Wilcox +pkgname=kpmcore +pkgver=3.3.0 +pkgrel=0 +pkgdesc="Core routines for KDE Partition Manager" +url="https://www.kde.org/applications/system/kdepartitionmanager" +arch="all" +license="LGPL-2.1+" +depends="" +depends_dev="libatasmart-dev parted-dev qt5-qtbase-dev" +makedepends="$depends_dev cmake extra-cmake-modules kcoreaddons-dev ki18n-dev + kwidgetsaddons-dev util-linux-dev" +subpackages="$pkgname-dev $pkgname-lang" +source="https://download.kde.org/stable/kpmcore/$pkgver/src/kpmcore-$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="62a0a341fbbec426291e2c9dd183a20466fce48ffaa360dd816c58402ee03c1f61c4ef7887d0a66c4693d77c2183a5da3477b828ba4ac2ed405f684ffb27125e kpmcore-3.3.0.tar.xz" -- cgit v1.2.3-70-g09d2