0
0
Fork 0
haikuports/net-wireless/nitroshare/nitroshare-0.3.4.recipe

75 lines
1.9 KiB
Bash

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="all !x86_gcc2 ?x86"
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
}