summaryrefslogtreecommitdiff
path: root/user/krusader
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-12 19:19:13 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-12 20:08:31 -0500
commit6f749253e6c8455ab1bced6df4de5f86bb4b9185 (patch)
tree0aec2f5ca76741190b6f82658b788c32e9660d52 /user/krusader
parentade722df0cc9b322303f21aecc6bef484530054f (diff)
downloadpackages-6f749253e6c8455ab1bced6df4de5f86bb4b9185.tar.gz
packages-6f749253e6c8455ab1bced6df4de5f86bb4b9185.tar.bz2
packages-6f749253e6c8455ab1bced6df4de5f86bb4b9185.tar.xz
packages-6f749253e6c8455ab1bced6df4de5f86bb4b9185.zip
user/krusader: new package
Diffstat (limited to 'user/krusader')
-rw-r--r--user/krusader/APKBUILD49
-rw-r--r--user/krusader/posix-headers.patch20
2 files changed, 69 insertions, 0 deletions
diff --git a/user/krusader/APKBUILD b/user/krusader/APKBUILD
new file mode 100644
index 000000000..a141befdb
--- /dev/null
+++ b/user/krusader/APKBUILD
@@ -0,0 +1,49 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=krusader
+pkgver=2.6.0
+pkgrel=0
+pkgdesc="Advanced, twin-panel (commander style) file manager"
+url="https://krusader.org/"
+arch="all"
+license="GPL-2.0"
+depends=""
+makedepends="cmake extra-cmake-modules qt5-qtbase-dev karchive-dev kcodecs-dev
+ kbookmarks-dev kcompletion-dev kcoreaddons-dev kconfig-dev kdoctools-dev
+ ki18n-dev kiconthemes-dev kitemviews-dev kio-dev knotifications-dev
+ kparts-dev solid-dev ktextwidgets-dev kwallet-dev kwidgetsaddons-dev
+ kwindowsystem-dev kxmlgui-dev kguiaddons-dev"
+install=""
+subpackages="$pkgname-doc $pkgname-lang"
+source="http://download.kde.org/stable/krusader/$pkgver/krusader-$pkgver.tar.xz
+ posix-headers.patch"
+builddir="$srcdir/krusader-$pkgver"
+
+build() {
+ cd "$builddir"
+ 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() {
+ cd "$builddir"
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="d7ae1696e77ddbd8b18043e8497356151ddaa69192a89dbf1f4381216318aaca97a0be4e44595e51007f1eccf73eec55c3bd9f694aaacfa138aa3391f1f5d898 krusader-2.6.0.tar.xz
+6df1a858c896d91d2f09a0cf49a90177655cf21bd7fe18c5b82e0805f81d3c121978b932a2f139d2e0e4ca8d9741d181274b968628e905f87557b6ad43f05a59 posix-headers.patch"
diff --git a/user/krusader/posix-headers.patch b/user/krusader/posix-headers.patch
new file mode 100644
index 000000000..c52d63656
--- /dev/null
+++ b/user/krusader/posix-headers.patch
@@ -0,0 +1,20 @@
+--- krusader-2.6.0/krusader/FileSystem/krpermhandler.h.old 2017-04-11 12:32:08.000000000 -0500
++++ krusader-2.6.0/krusader/FileSystem/krpermhandler.h 2017-10-12 18:55:51.447922274 -0500
+@@ -39,6 +39,7 @@
+
+ #include <KIO/Global>
+
++#include <sys/types.h>
+ #include <time.h>
+ #include <stdlib.h>
+ #include <unistd.h>
+--- krusader-2.6.0/krusader/DiskUsage/filelightParts/fileTree.h.old 2017-04-11 12:32:08.000000000 -0500
++++ krusader-2.6.0/krusader/DiskUsage/filelightParts/fileTree.h 2017-10-12 18:56:22.954502133 -0500
+@@ -23,6 +23,7 @@
+
+ #include <KIO/Global>
+
++#include <sys/types.h>
+ #include <time.h>
+ #include <stdlib.h>
+ #include <unistd.h>