mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
29
app-text/ghostwriter/additional-files/ghostwriter.rdef.in
Normal file
29
app-text/ghostwriter/additional-files/ghostwriter.rdef.in
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
resource app_flags B_MULTIPLE_LAUNCH;
|
||||
|
||||
resource app_version {
|
||||
major = @MAJOR@,
|
||||
middle = @MIDDLE@,
|
||||
minor = @MINOR@,
|
||||
|
||||
variety = B_APPV_FINAL,
|
||||
internal = 0,
|
||||
|
||||
short_info = "ghostwriter",
|
||||
long_info = "@LONG_INFO@"
|
||||
};
|
||||
|
||||
resource app_signature "@APP_SIGNATURE@";
|
||||
|
||||
resource file_types message {
|
||||
"types" = "image"
|
||||
};
|
||||
|
||||
resource vector_icon {
|
||||
$"6E63696603050005FF03786868040407BF2F3F25292556255B3D5B355B45554E"
|
||||
$"574953535C5A3B57465A3054243E244824253E250407BE2F3F28573C57285749"
|
||||
$"514E514951535457415545553D55283E284C28283F2802043432373230322E3B"
|
||||
$"2E332E413442304237423A3A3A413A3302044057C34557BC3A5730593155B885"
|
||||
$"CD204A5EC0365EC7415E5857CAE3CC105755050A020103000A000100000A0101"
|
||||
$"01000A00010220211E0A00010220321E"
|
||||
};
|
||||
93
app-text/ghostwriter/ghostwriter-1.5.0.recipe
Normal file
93
app-text/ghostwriter/ghostwriter-1.5.0.recipe
Normal file
@@ -0,0 +1,93 @@
|
||||
SUMMARY="A cross-platform, aesthetic, distraction-free Markdown editor"
|
||||
DESCRIPTION="ghostwriter is a text editor for Markdown."
|
||||
HOMEPAGE="https://wereturtle.github.io/ghostwriter/"
|
||||
COPYRIGHT="wereturtle et al."
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/wereturtle/ghostwriter/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="bfd64024d9741f55d587afa5661f4b5e2a48becbbc92495c2186fca44fb08486"
|
||||
ADDITIONAL_FILES="ghostwriter.rdef.in"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
ghostwriter$secondaryArchSuffix = $portVersion
|
||||
app:Ghostwriter$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
cmd:hunspell$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libQt5Concurrent$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
lib:libQt5Gui$secondaryArchSuffix
|
||||
lib:libQt5PrintSupport$secondaryArchSuffix
|
||||
lib:libQt5WebKit$secondaryArchSuffix
|
||||
lib:libQt5WebKitWidgets$secondaryArchSuffix
|
||||
lib:libQt5Widgets$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
hunspell${secondaryArchSuffix}_devel
|
||||
devel:libGL$secondaryArchSuffix
|
||||
devel:libQt5Concurrent$secondaryArchSuffix
|
||||
devel:libQt5Core$secondaryArchSuffix
|
||||
devel:libQt5Gui$secondaryArchSuffix
|
||||
devel:libQt5PrintSupport$secondaryArchSuffix
|
||||
devel:libQt5WebKit$secondaryArchSuffix
|
||||
devel:libQt5WebKitWidgets$secondaryArchSuffix
|
||||
devel:libQt5Widgets$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:lrelease$secondaryArchSuffix >= 5
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:qmake$secondaryArchSuffix >= 5
|
||||
"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
sed -i \
|
||||
-e "/translationPaths.append/ \
|
||||
s|appDir + \"/translations\"|\"$dataDir/ghostwriter/translations\"|;" \
|
||||
src/AppSettings.cpp
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
lrelease ghostwriter.pro
|
||||
qmake
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $appsDir
|
||||
mkdir -p $dataDir/ghostwriter/translations
|
||||
cp ./build/release/ghostwriter $appsDir/Ghostwriter
|
||||
cp ./translations/*.qm $dataDir/ghostwriter/translations/
|
||||
|
||||
local APP_SIGNATURE="application/x-vnd.ghostwriter"
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||||
local LONG_INFO="$SUMMARY"
|
||||
sed \
|
||||
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
||||
$portDir/additional-files/ghostwriter.rdef.in > ghostwriter.rdef
|
||||
|
||||
addResourcesToBinaries ghostwriter.rdef $appsDir/Ghostwriter
|
||||
mimeset -f $appsDir/Ghostwriter
|
||||
addAppDeskbarSymlink $appsDir/Ghostwriter
|
||||
}
|
||||
Reference in New Issue
Block a user