2024-05-22 15:17:47 +00:00

49 lines
1.3 KiB
Plaintext

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: team/kde <bribbers@disroot.org>
# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-frameworks-old
pkgname=kcodecs5
pkgver=5.116.0
pkgrel=0
pkgdesc="Provide a collection of methods to manipulate strings using various encodings"
arch="all !armhf" # armhf blocked by extra-cmake-modules
url="https://community.kde.org/Frameworks"
license="LGPL-2.1-only AND LGPL-2.1-or-later"
makedepends="
doxygen
extra-cmake-modules
gperf
graphviz
qt5-qttools-dev
samurai
"
checkdepends="xvfb-run"
_repo_url="https://invent.kde.org/frameworks/kcodecs.git"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kcodecs-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
builddir="$srcdir/kcodecs-$pkgver"
replaces="kcodecs<=5.110.0-r0"
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() {
xvfb-run ctest --test-dir build --output-on-failure build -E "(rfc2047|kcharsets)test"
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
79d2b5b7a7cd815fa9a00ca4a8cd5fbf2a003521796b21fe3014caaa4506d14a7fbada88ff10b1a16118f2863dc876794e21db6a98f34d5b31d5973c5586da4b kcodecs-5.116.0.tar.xz
"