mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
Nitroshare: new recipe (#2763)
This commit is contained in:
74
net-wireless/nitroshare/nitroshare-0.3.4.recipe
Normal file
74
net-wireless/nitroshare/nitroshare-0.3.4.recipe
Normal file
@@ -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
|
||||
}
|
||||
21
net-wireless/nitroshare/patches/nitroshare-0.3.4.patchset
Normal file
21
net-wireless/nitroshare/patches/nitroshare-0.3.4.patchset
Normal file
@@ -0,0 +1,21 @@
|
||||
From 4de5ad0d0389b2df09469c1cdbd91f17d2e10948 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user