summaryrefslogtreecommitdiff
path: root/user/libkomparediff2/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/libkomparediff2/APKBUILD')
-rw-r--r--user/libkomparediff2/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/user/libkomparediff2/APKBUILD b/user/libkomparediff2/APKBUILD
new file mode 100644
index 000000000..99124c04e
--- /dev/null
+++ b/user/libkomparediff2/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=libkomparediff2
+pkgver=20.04.3
+pkgrel=0
+pkgdesc="KDE diff library"
+url="https://kde.org/applications/development/org.kde.kompare"
+arch="all"
+license="GPL-2.0+ AND GPL-2.0-only AND LGPL-2.0+"
+depends=""
+makedepends="qt5-qtbase-dev cmake extra-cmake-modules kauth-dev kcodecs-dev
+ kcompletion-dev kconfig-dev kconfigwidgets-dev kcoreaddons-dev ki18n-dev
+ kio-dev kitemviews-dev kjobwidgets-dev kservice-dev kwidgetsaddons-dev
+ kwindowsystem-dev kxmlgui-dev solid-dev"
+subpackages="$pkgname-dev $pkgname-lang"
+source="https://download.kde.org/stable/release-service/$pkgver/src/libkomparediff2-$pkgver.tar.xz"
+
+build() {
+ 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() {
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="880b8ed7d8e3df82f82509ef42f0c951340ed5c735e19af067381c9b0613afd43af97695bd42c8b60febda5605f22c6fb215ff2acbc5f6754e7c0076455e891f libkomparediff2-20.04.3.tar.xz"