kde/drkonqi: initial import, closes #1856

Wed, 02 Oct 2019 20:09:00 +0200

author
David Demelier <markand@malikania.fr>
date
Wed, 02 Oct 2019 20:09:00 +0200
changeset 1159
baa88b11f6ac
parent 1158
f9d8c8f85e3d
child 1160
a3d2fc841d94

kde/drkonqi: initial import, closes #1856

kde/drkonqi/drkonqi.sh file | annotate | diff | comparison | revisions
kde/drkonqi/drkonqi.sha1 file | annotate | diff | comparison | revisions
kde/drkonqi/patch-musl.patch file | annotate | diff | comparison | revisions
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/kde/drkonqi/drkonqi.sh	Wed Oct 02 20:09:00 2019 +0200
@@ -0,0 +1,71 @@
+#!/bin/sh
+#
+# Copyright (c) 2019 David Demelier <markand@malikania.fr>
+#
+# Permission to use, copy, modify, and/or distribute this software for any
+# purpose with or without fee is hereby granted, provided that the above
+# copyright notice and this permission notice appear in all copies.
+#
+# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+#
+
+PKGNAME=drkonqi
+PKGVERSION=5.16.4
+PKGREVISION=1
+PKGLICENSE="GPLv20 LGPLv21"
+PKGSUMMARY="KDE drkonqi"
+PKGDOWNLOAD="https://download.kde.org/stable/plasma/$PKGVERSION/$PKGNAME-$PKGVERSION.tar.xz"
+PKGDEPENDS="cmake:build
+            extra-cmake-modules:build
+            kcompletion
+            kconfigwidgets
+            kcoreaddons
+            kcrash
+            ki18n
+            kideltime
+            kio
+            kjobwidgets
+            knotifications
+            kservice
+            kwallet
+            kwidgetsaddons
+            kwindowsystem
+            kxmlrpcclient
+            qtbase
+            zlib"
+
+: ${CC:=clang}
+: ${CFLAGS:=-O2}
+: ${CXX:=clang++}
+: ${CXXFLAGS:=-O2}
+
+build()
+{
+	rm -rf $PKGNAME-$PKGVERSION
+	tar xvf $PKGNAME-$PKGVERSION.tar.xz
+	cd $PKGNAME-$PKGVERSION
+
+	patch -p0 < ../patch-musl.patch
+	mkdir build && cd build
+	cmake .. \
+		-DBUILD_SHARED_LIBS=On \
+		-DCMAKE_BUILD_TYPE=Release \
+		-DCMAKE_CXX_COMPILER="$CXX" \
+		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+		-DCMAKE_C_COMPILER="$CC" \
+		-DCMAKE_C_FLAGS="$CFLAGS" \
+		-DCMAKE_INSTALL_PREFIX= \
+		-DBUILD_TESTING=Off
+	make
+	make install DESTDIR=$DESTDIR
+	cd ..
+
+	cd ..
+	rm -rf $PKGNAME-$PKGVERSION
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/kde/drkonqi/drkonqi.sha1	Wed Oct 02 20:09:00 2019 +0200
@@ -0,0 +1,1 @@
+4d91cf77fa6dcf786ea4de18009313feccfc7359  drkonqi-5.16.4.tar.xz
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/kde/drkonqi/patch-musl.patch	Wed Oct 02 20:09:00 2019 +0200
@@ -0,0 +1,15 @@
+--- src/ptracer.cpp.orig	2019-10-02 15:33:41.843745984 +0000
++++ src/ptracer.cpp	2019-10-02 15:34:28.527747418 +0000
+@@ -23,10 +23,11 @@
+ #include <QFile>
+ #include <QStandardPaths>
+ 
+-#include <sys/poll.h>
+ #include <sys/socket.h>
+ #include <sys/un.h>
+ 
++#include <errno.h>
++#include <poll.h>
+ #include <unistd.h>
+ 
+ void setPtracer(qint64 debuggerpid, qint64 debuggeepid)

mercurial