mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-07 14:04:43 +02:00
67 lines
1.4 KiB
Text
67 lines
1.4 KiB
Text
# The group tag is just to easily find this APKBUILD by some scripts for automation
|
|
# group=kde-frameworks
|
|
maintainer="team/kde <bribbers@disroot.org>"
|
|
pkgname=kunitconversion
|
|
pkgver=6.13.0
|
|
pkgrel=0
|
|
pkgdesc="Support for unit conversion"
|
|
arch="all !armhf" # armhf blocked by extra-cmake-modules
|
|
url="https://community.kde.org/Frameworks"
|
|
license="LGPL-2.1-or-later"
|
|
depends_dev="
|
|
ki18n-dev
|
|
qt6-qtbase-dev
|
|
"
|
|
makedepends="$depends_dev
|
|
doxygen
|
|
extra-cmake-modules
|
|
py3-build
|
|
py3-setuptools
|
|
qt6-qttools-dev
|
|
samurai
|
|
"
|
|
subpackages="
|
|
$pkgname-dev
|
|
$pkgname-doc
|
|
$pkgname-lang
|
|
"
|
|
case "$CARCH" in
|
|
riscv64) ;;
|
|
*)
|
|
makedepends="$makedepends
|
|
py3-shiboken6
|
|
pyside6-dev
|
|
python3-dev
|
|
"
|
|
subpackages="$subpackages
|
|
py3-$pkgname:_py3"
|
|
;;
|
|
esac
|
|
_repo_url="https://invent.kde.org/frameworks/kunitconversion.git"
|
|
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kunitconversion-$pkgver.tar.xz"
|
|
options="net" # net required for tests
|
|
|
|
build() {
|
|
cmake -B build -G Ninja \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DBUILD_QCH=ON
|
|
cmake --build build
|
|
}
|
|
|
|
check() {
|
|
ctest --test-dir build -j1
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|
|
_py3() {
|
|
amove usr/lib/python*
|
|
}
|
|
|
|
sha512sums="
|
|
e9349296062a547c3d3b53d125752c2383bb727fd11df5cf4ecfc8ea8c1663ebe12608863fbef8fe3ed50cc7819b09498a1a58d78c7853b78822581fed3ab33d kunitconversion-6.13.0.tar.xz
|
|
"
|