mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
75 lines
1.9 KiB
Bash
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
|
|
}
|