diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-01-03 02:33:37 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-01-03 04:41:27 +0000 |
commit | a9908d0c3242971c4a0d1508774fb9c70734ac78 (patch) | |
tree | 9919c371ac3e2f57788d244fcce079d187be064d /user/kpmcore/APKBUILD | |
parent | 8cbec3a46e4a9350bf4038aa765d3269cfa16632 (diff) | |
download | packages-a9908d0c3242971c4a0d1508774fb9c70734ac78.tar.gz packages-a9908d0c3242971c4a0d1508774fb9c70734ac78.tar.bz2 packages-a9908d0c3242971c4a0d1508774fb9c70734ac78.tar.xz packages-a9908d0c3242971c4a0d1508774fb9c70734ac78.zip |
user/kpmcore: new package
Diffstat (limited to 'user/kpmcore/APKBUILD')
-rw-r--r-- | user/kpmcore/APKBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
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 <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +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" |