2025-01-12 12:29:12 +01:00

46 lines
1.2 KiB
Plaintext

# Contributor: Bart Ribbers <bribbers@disroot.org>
# 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=kcodecs
pkgver=6.10.0
pkgrel=0
pkgdesc="Provide a collection of methods to manipulate strings using various encodings"
arch="all"
url="https://community.kde.org/Frameworks"
license="LGPL-2.1-only AND LGPL-2.1-or-later"
makedepends="
doxygen
extra-cmake-modules
gperf
graphviz
qt6-qttools-dev
samurai
"
checkdepends="xvfb-run"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
_repo_url="https://invent.kde.org/frameworks/kcodecs.git"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kcodecs-$pkgver.tar.xz"
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="
57f3d2a688a40316ed340aa0834324e7afa8e0d76a055a6c73264837c8b72783213e906fcf94f86d881aaed7cd93f72e942fdc13bd4fd17b89479276d59fe463 kcodecs-6.10.0.tar.xz
"