notes, new recipe (#8894)

This commit is contained in:
Schrijvers Luc
2023-06-28 15:02:13 +02:00
committed by GitHub
parent 492293eb8c
commit ff6e77c783
2 changed files with 148 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
resource app_flags B_MULTIPLE_LAUNCH;
resource app_version {
major = @MAJOR@,
middle = @MIDDLE@,
minor = @MINOR@,
variety = B_APPV_FINAL,
internal = 0,
short_info = "Notes",
long_info = "@LONG_INFO@"
};
resource app_signature "@APP_SIGNATURE@";
resource vector_icon {
$"6E6369660405FF03CCCBCB030085CB058809020AC6B9CB47C6B9CB47C212CB47"
$"B8C7CB47BD6DCB47B796CB47B6A0C920B6A0CA51B6A0C2EEB6A0B689B6A0BCBB"
$"B6A0B558B8C7B462B796B462BD6DB462C6B9B462C212B462C7E9B462C8DFB689"
$"C8DFB558C8DFBCBBC8DFC920C8DFC2EEC8DFCA50C6B9CB47C7E9CB47C6B9CB47"
$"C6B9CB47C6B9CB47C6B9CB47020AC6B9CB47C6B9CB47C212CB47B8C7CB47BD6D"
$"CB47B796CB47B6A0C920B6A0CA51B6A0C2EEB6A0B689B6A0BCBBB6A0B558B8C7"
$"B462B796B462BD6DB462C6B9B462C212B462C7E9B462C8DFB689C8DFB558C8DF"
$"BCBBC8DFC920C8DFC2EEC8DFCA50C6B9CB47C7E9CB47C6B9CB47C6B9CB47C6B9"
$"CB47C6B9CB47020AC7DCB8CAC7DCB8CAC274B8CAB7A3B8CABD0BB8CAB714B8CA"
$"B6A02CB6A0B856B6A0B6EFB6A0B53DB6A0B616B6A0B4AEB7A3B43AB714B43ABD"
$"0BB43AC7DCB43AC274B43AC86BB43AC8DFB53DC8DFB4AEC8DFB616C8DF2CC8DF"
$"B6EFC8DFB855C7DCB8CAC86BB8CAC7DCB8CAC7DCB8CAC7DCB8CAC7DCB8CA0002"
$"2CBB2B2CBB2BBD10BB2BC7A1BB2BC258BB2BC7A1BB2B00022CBDBC2CBDBCBD10"
$"BDBCC7A1BDBCC258BDBCC7A1BDBC00022CC04D2CC04DBD10C04DC7A1C04DC258"
$"C04DC7A1C04D00022CC2DF2CC2DFBD10C2DFC7A1C2DFC258C2DFC7A1C2DF0002"
$"2CC5702CC570BD10C570C7A1C570C258C570C7A1C57000022CC8012CC801BD10"
$"C801C7A1C801C258C801C7A1C801090A000100000A0101011001178000040A02"
$"0102000A0301031001178000040A0301041001178000040A0301051001178000"
$"040A0301061001178000040A0301071001178000040A030108100117800004"
};

View File

@@ -0,0 +1,112 @@
SUMMARY="Note taking application, write down your thoughts"
DESCRIPTION="Notes is an open source and cross-platform note-taking app that is both beautiful \
and powerful.
Features:
- Native app (written in C++ with Qt).
- Fast with a low memory footprint.
- Fully open source and cross-platform (Linux, macOS, Windows).
- Completely private - tracks nothing.
- Beautiful and sleek looking, yet still powerful.
- Folders and tags. Organize your ideas hierarchically using nested folders and universally \
using tags.
- Markdown Support. Format text without lifting your hands from the keyboard.
- Different themes. Switch between Light, Dark, and Sepia.
- Feed View. Select multiple notes to see them all one after another in the editor.
- Always runs in the background. Use the hotkey Win+Shift+N to summon Notes. Ctrl+N for macOS.
- Keyboard shortcuts. Meant to have the option to be used solely with a keyboard (but more work \
needs to be done there).
- What feature will you contribute?"
HOMEPAGE="https://get-notes.com"
COPYRIGHT="2023 nuttyartist et all"
LICENSE="MPL v2.0"
REVISION="1"
SOURCE_URI="https://github.com/nuttyartist/notes/archive/refs/tags/v2.1.0.tar.gz"
CHECKSUM_SHA256="8a8ae079fad6d9d5e9206acf5f4d19e1e73e1196e6c27408072b5cccf8778b95"
srcGitRev_2="efdb2e5a25e5646390f8658e3321f6e9a4c3561a"
SOURCE_URI_2="https://github.com/b00f/qautostart/archive/$srcGitRev_2.tar.gz"
CHECKSUM_SHA256_2="5eb501b31916fdb516979c6a19dc17a64711186090a29f92be4a6f0704e819cd"
SOURCE_DIR_2="qautostart-$srcGitRev_2"
srcGitRev_3="b2926abe78a98d79290106b17016e99a251f4a8c"
SOURCE_URI_3="https://github.com/pbek/qmarkdowntextedit/archive/$srcGitRev_3.tar.gz"
CHECKSUM_SHA256_3="c1af63c7be3444ee3df848a11371e121f504d7fed7483bbac0f90e9fd7fe07f8"
SOURCE_DIR_3="qmarkdowntextedit-$srcGitRev_3"
srcGitRev_4="14c1bef71d26c915eeaa05c988c55bdad98e1d75"
SOURCE_URI_4="https://github.com/alex-spataru/QSimpleUpdater/archive/$srcGitRev_4.tar.gz"
CHECKSUM_SHA256_4="a23f78f846b9dfb4074d2371923c76dc5c7415548056ecb3454189bb02e8e8f4"
SOURCE_DIR_4="QSimpleUpdater-$srcGitRev_4"
ADDITIONAL_FILES="notes.rdef.in"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
notes$secondaryArchSuffix = $portVersion
cmd:notes = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libQt6Concurrent$secondaryArchSuffix
lib:libQt6Core$secondaryArchSuffix
lib:libQt6Gui$secondaryArchSuffix
lib:libQt6Network$secondaryArchSuffix
lib:libQt6Sql$secondaryArchSuffix
lib:libQt6Widgets$secondaryArchSuffix
lib:libX11$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
xlibe${secondaryArchSuffix}_devel
devel:libQt6Concurrent$secondaryArchSuffix
devel:libQt6Core$secondaryArchSuffix
devel:libQt6DBus$secondaryArchSuffix
devel:libQt6Gui$secondaryArchSuffix
devel:libQt6Network$secondaryArchSuffix
devel:libQt6Sql$secondaryArchSuffix
devel:libQt6Test$secondaryArchSuffix
devel:libQt6Widgets$secondaryArchSuffix
devel:libxcb$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:make
"
BUILD()
{
cp -rf $sourceDir2/* 3rdParty/qautostart
cp -rf $sourceDir3/* 3rdParty/qmarkdowntextedit
cp -rf $sourceDir4/* 3rdParty/QSimpleUpdater
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
$cmakeDirArgs \
-DUPDATE_CHECKER=OFF -L
make -C build $jobArgs
}
INSTALL()
{
make -C build install
rm -rf $dataDir
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3`"
local APP_NAME="Mednaffe"
local LONG_INFO="$SUMMARY"
local APP_SIGNATURE="application/x-vnd.notes"
sed \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
-e "s|@LONG_INFO@|$LONG_INFO|" \
-e "s|@APP_NAME@|$APP_NAME|" \
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
$portDir/additional-files/notes.rdef.in > notes.rdef
addResourcesToBinaries notes.rdef $prefix/bin/notes
addAppDeskbarSymlink $prefix/bin/notes Notes
}