aports/community/kemoticons5/APKBUILD
2024-05-22 15:17:47 +00:00

54 lines
1.4 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=kemoticons5
pkgver=5.116.0
pkgrel=0
pkgdesc="Support for emoticons and emoticons themes"
arch="all !armhf"
url="https://community.kde.org/Frameworks"
license="LGPL-2.1-or-later AND (LGPL-2.1-only OR LGPL-3.0-only)"
depends_dev="
karchive5-dev
kconfig5-dev
kcoreaddons5-dev
kservice5-dev
"
makedepends="$depends_dev
doxygen
extra-cmake-modules
qt5-qttools-dev
samurai
"
checkdepends="xvfb-run"
_repo_url="https://invent.kde.org/frameworks/kemoticons.git"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kemoticons-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-doc"
builddir="$srcdir/kemoticons-$pkgver"
replaces="kemoticons<=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() {
# kemoticons-kemoticontest and kemoticons-ktexttohtmlplugintest are broken
xvfb-run ctest --test-dir build --output-on-failure -E "kemoticons-(kemoticon|ktexttohtmlplugin)test"
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
9bf1c7f1c7b0d61a43d12b3af58707d61f3f3ae0f1d817db0e34db6ca25eb8d33a7780d218a44e57b4974e5683e3e26126b45e74a4c8eb764df2cb3d900b27f9 kemoticons-5.116.0.tar.xz
"