diff --git a/net-wireless/nitroshare/nitroshare-0.3.4.recipe b/net-wireless/nitroshare/nitroshare-0.3.4.recipe new file mode 100644 index 000000000..886bc6ab2 --- /dev/null +++ b/net-wireless/nitroshare/nitroshare-0.3.4.recipe @@ -0,0 +1,74 @@ +SUMMARY="A cross-platform network file transfer application" +DESCRIPTION="Features + +* Runs on Windows / Mac OS X / Linux +* Automatic discovery of devices on the local network +* Simple and intuitive user interface +* Incredibly fast transfer speeds +* Transfer entire directories +* Optional TLS encryption +* Local HTTP API +* Completely free and open-source" +HOMEPAGE="https://github.com/nitroshare/nitroshare-desktop" +COPYRIGHT="2017 Nathan Osman" +LICENSE="MIT" +REVISION="1" +SOURCE_URI="$HOMEPAGE/archive/$portVersion.tar.gz" +CHECKSUM_SHA256="29874e5909c29211a3c9e13f8c0f49b901ec2996e5d60d80af80d2fb80c3d7ec" +SOURCE_FILENAME="nitroshare-$portVersion.tar.gz" +SOURCE_DIR="nitroshare-desktop-$portVersion" +PATCHES="nitroshare-$portVersion.patchset" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + nitroshare$secondaryArchSuffix = $portVersion + app:nitroshare = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libqhttpengine$secondaryArchSuffix + lib:libqmdnsengine$secondaryArchSuffix + lib:libQt5Core$secondaryArchSuffix + lib:libQt5Gui$secondaryArchSuffix + lib:libQt5Network$secondaryArchSuffix + lib:libQt5Svg$secondaryArchSuffix + lib:libQt5Widgets$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libqhttpengine$secondaryArchSuffix + devel:libqmdnsengine$secondaryArchSuffix + devel:libQt5Core$secondaryArchSuffix + devel:libQt5Gui$secondaryArchSuffix + devel:libQt5Network$secondaryArchSuffix + devel:libQt5Svg$secondaryArchSuffix + devel:libQt5Widgets$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:g++$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +defineDebugInfoPackage nitroshare$secondaryArchSuffix \ + "$appsDir"/Nitroshare + +BUILD() +{ + cmake -DCMAKE_INSTALL_PREFIX:PATH=$appsDir . + make $jobArgs +} + +INSTALL() +{ + mkdir -p $appsDir + cp out/nitroshare $appsDir/Nitroshare + + # TODO: Add icon + addAppDeskbarSymlink $appsDir/Nitroshare +} diff --git a/net-wireless/nitroshare/patches/nitroshare-0.3.4.patchset b/net-wireless/nitroshare/patches/nitroshare-0.3.4.patchset new file mode 100644 index 000000000..2cf344de3 --- /dev/null +++ b/net-wireless/nitroshare/patches/nitroshare-0.3.4.patchset @@ -0,0 +1,21 @@ +From 4de5ad0d0389b2df09469c1cdbd91f17d2e10948 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= +Date: Sun, 1 Jul 2018 14:02:25 +0200 +Subject: Build fix + + +diff --git a/src/application/splashdialog.cpp b/src/application/splashdialog.cpp +index d3f6317..06b4b48 100644 +--- a/src/application/splashdialog.cpp ++++ b/src/application/splashdialog.cpp +@@ -37,5 +37,7 @@ SplashDialog::SplashDialog() + + // Remove the frame and center the window + setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint); ++ #ifndef __HAIKU__ + setGeometry(QStyle::alignedRect(Qt::LeftToRight, Qt::AlignCenter, size(), QApplication::desktop()->availableGeometry())); ++ #endif + } +-- +2.16.4 +