Skip to content

Commit

Permalink
ghostwriter, bump version (#10375)
Browse files Browse the repository at this point in the history
  • Loading branch information
Begasus committed Apr 25, 2024
1 parent 3b7748a commit d56c352
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 102 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,39 @@ Main features:
* Outline window to quickly jump to headings
* Markdown cheat sheet
* Document and session statistics"
HOMEPAGE="https://wereturtle.github.io/ghostwriter/"
COPYRIGHT="wereturtle et al."
HOMEPAGE="https://ghostwriter.kde.org/"
COPYRIGHT="2014-2024 The ghostwriter team"
LICENSE="GNU GPL v3"
REVISION="4"
REVISION="1"
SOURCE_URI="https://github.com/wereturtle/ghostwriter/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="4987126e71a37556e575fbce2002c5504cf15a04c11bcce604a278f59ec9c11a"
CHECKSUM_SHA256="d63225630962341534fb9b3aac71121fbfd81d0eeee8de86516badfe14b679c2"
SOURCE_FILENAME="ghostwriter-$portVersion.tar.gz"
ADDITIONAL_FILES="ghostwriter.rdef.in"
PATCHES="ghostwriter-$portVersion.patchset"

ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"

PROVIDES="
ghostwriter$secondaryArchSuffix = $portVersion
app:Ghostwriter$secondaryArchSuffix = $portVersion
cmd:ghostwriter$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
cmd:hunspell$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libKF5Auth$secondaryArchSuffix
lib:libKF5Codecs$secondaryArchSuffix
lib:libKF5ConfigCore$secondaryArchSuffix
lib:libKF5ConfigWidgets$secondaryArchSuffix
lib:libKF5CoreAddons$secondaryArchSuffix
lib:libKF5SonnetCore$secondaryArchSuffix
lib:libKF5WidgetsAddons$secondaryArchSuffix
lib:libKF5XmlGui$secondaryArchSuffix
lib:libQt5Concurrent$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5PrintSupport$secondaryArchSuffix
lib:libQt5Webengine$secondaryArchSuffix
lib:libQt5WebKit$secondaryArchSuffix
lib:libQt5WebKitWidgets$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
Expand All @@ -46,45 +54,49 @@ REQUIRES="
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
hunspell${secondaryArchSuffix}_devel
extra_cmake_modules$secondaryArchSuffix
devel:libGL$secondaryArchSuffix
devel:libKF5Auth$secondaryArchSuffix
devel:libKF5Codecs$secondaryArchSuffix
devel:libKF5ConfigCore$secondaryArchSuffix
devel:libKF5ConfigWidgets$secondaryArchSuffix
devel:libKF5CoreAddons$secondaryArchSuffix
devel:libKF5SonnetCore$secondaryArchSuffix
devel:libKF5WidgetsAddons$secondaryArchSuffix
devel:libKF5XmlGui$secondaryArchSuffix
devel:libQt5Concurrent$secondaryArchSuffix
devel:libQt5Core$secondaryArchSuffix
devel:libQt5Gui$secondaryArchSuffix
devel:libQt5PrintSupport$secondaryArchSuffix
devel:libQt5Webengine$secondaryArchSuffix
devel:libQt5WebKit$secondaryArchSuffix
devel:libQt5WebKitWidgets$secondaryArchSuffix
devel:libQt5Widgets$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:gcc$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 BINDIR=$appsDir DATADIR=$dataDir
make $jobArgs
cmake -Bbuild -S. $cmakeDirArgs \
-DCMAKE_BUILD_TYPE=Release \
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
make -C build $jobArgs
}

INSTALL()
{
make install
mv $appsDir/ghostwriter $appsDir/Ghostwriter
rm -rf $dataDir/{appdata,applications,icons,pixmaps}
make -C build install

# cleanup
rm -rf $dataDir/{applications,icons,metainfo}

local APP_SIGNATURE="application/x-vnd.ghostwriter"
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
Expand All @@ -99,7 +111,7 @@ INSTALL()
-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
addResourcesToBinaries ghostwriter.rdef $binDir/ghostwriter
mimeset -f $binDir/ghostwriter
addAppDeskbarSymlink $binDir/ghostwriter Ghostwriter
}
78 changes: 0 additions & 78 deletions app-text/ghostwriter/patches/ghostwriter-1.7.4.patchset

This file was deleted.

0 comments on commit d56c352

Please sign in to comment.