aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-04-25 20:17:49 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-07-02 07:28:33 -0300
commitb15e2f6ea83d59ea8552bf515d26dfb3f33fe103 (patch)
tree9429fedd5460383fb7b4a07f7ff7cb8b6493a8a6 /testing
parentbcf94f240c25cbcf50d36a4cbe08dee527db2ef5 (diff)
downloadaports-b15e2f6ea83d59ea8552bf515d26dfb3f33fe103.tar.bz2
aports-b15e2f6ea83d59ea8552bf515d26dfb3f33fe103.tar.xz
testing/falkon: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/falkon/APKBUILD45
-rw-r--r--testing/falkon/execinfo_h.patch21
2 files changed, 66 insertions, 0 deletions
diff --git a/testing/falkon/APKBUILD b/testing/falkon/APKBUILD
new file mode 100644
index 0000000000..3b99eb9f45
--- /dev/null
+++ b/testing/falkon/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Leo <thinkabit.ukim@gmail.com>
+# Maintainer: Leo <thinkabit.ukim@gmail.com>
+pkgname=falkon
+pkgver=3.1.0
+pkgrel=0
+pkgdesc="Cross-platform Qt Web Browser"
+url="https://github.com/KDE/falkon"
+arch="all !ppc64le !s390x" # Limited by qt5-qtwebengine
+license="GPL-3.0-or-later"
+depends="qt5-qtbase-sqlite"
+makedepends="cmake python3 qt5-qtbase-dev extra-cmake-modules qt5-qtdeclarative-dev
+ qt5-qtwebengine-dev xcb-util-dev libxcb-dev qt5-qtx11extras-dev qt5-qttools-dev
+ ki18n-dev karchive-dev kwallet-dev kio-dev kcrash-dev kcoreaddons-dev purpose-dev"
+checkdepends="xvfb-run"
+subpackages="$pkgname-lang"
+source="https://download.kde.org/stable/falkon/3.1/falkon-${pkgver}.tar.xz
+ execinfo_h.patch"
+
+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=RelWithDefInfo \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ -DBUILD_TESTING=ON \
+ ${CMAKE_CROSSOPTS}
+ make
+}
+
+check() {
+ # Requires working OpenGL
+ xvfb-run ctest -E '(falkon-webviewtest|falkon-webtabtest|falkon-tabmodeltest)'
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="c04f97869150b8ab81ae7b01c7137e35ca5c3103c057e01896454bbeda1075372a7831d2dfe7ab66794de0983593df6e46eff47c5cdc2bc959f81b022506f054 falkon-3.1.0.tar.xz
+5492b986b8f2156fe8a7af7382c54a82efdc8ccafd5f56a545de8f76d4fb5d4427e75f1387a36d1def3a7667ad44eae75a99580afcacde8b9ab83367cfb75077 execinfo_h.patch"
diff --git a/testing/falkon/execinfo_h.patch b/testing/falkon/execinfo_h.patch
new file mode 100644
index 0000000000..d94e8f2526
--- /dev/null
+++ b/testing/falkon/execinfo_h.patch
@@ -0,0 +1,21 @@
+--- a/src/main/main.cpp 2018-03-09 14:27:10.849179401 +0100
++++ b/src/main/main.cpp 2018-03-09 14:27:44.623709876 +0100
+@@ -22,7 +22,7 @@
+ #include <QMessageBox> // For QT_REQUIRE_VERSION
+ #include <iostream>
+
+-#if defined(Q_OS_LINUX) || defined(__GLIBC__) || defined(__FreeBSD__) || defined(__HAIKU__)
++#if (defined(Q_OS_LINUX) && defined(__GLIBC__)) || defined(__FreeBSD__) || defined(__HAIKU__)
+ #include <signal.h>
+ #include <execinfo.h>
+
+@@ -129,7 +129,7 @@
+ qInstallMessageHandler(&msgHandler);
+ #endif
+
+-#if defined(Q_OS_LINUX) || defined(__GLIBC__) || defined(__FreeBSD__)
++#if (defined(Q_OS_LINUX) && defined(__GLIBC__)) || defined(__FreeBSD__)
+ signal(SIGSEGV, falkon_signal_handler);
+ #endif
+
+