summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-07-18 20:10:32 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-07-18 20:10:32 +0000
commit327f0a7edff9339dab51cf1f33d3c7d6f19aaf0b (patch)
tree7a2a49448cdb4cd34ffe48552145310ff4556b29 /user
parentb2aad21448823a417dae72b1ba389cba0770e3df (diff)
downloadpackages-327f0a7edff9339dab51cf1f33d3c7d6f19aaf0b.tar.gz
packages-327f0a7edff9339dab51cf1f33d3c7d6f19aaf0b.tar.bz2
packages-327f0a7edff9339dab51cf1f33d3c7d6f19aaf0b.tar.xz
packages-327f0a7edff9339dab51cf1f33d3c7d6f19aaf0b.zip
user/libkomparediff2: New package
Diffstat (limited to 'user')
-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"