qownnotes: switched to qt6, please check dependencies

This commit is contained in:
Tim Biermann 2024-04-04 00:04:23 +02:00
parent 8e1ad49636
commit fa7cfebfc3
Signed by: tb
GPG Key ID: 42F8B4E30B673606
2 changed files with 10 additions and 17 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF31FTnZbClR0vX0R9qhVrWYKaTe4GYZaCKepYG1Ef8zpVY31ak7uOfURFSifbSFVlSXwQCZTZOS7hdZVJcfuyGg8=
SHA256 (Pkgfile) = 665044ef80d39378edcbf67b8f00cf70655b762a1f48ebb411de73b5b9dad1be
RWSagIOpLGJF35Ye5Idx+xiOH1hYSNuZ7DVkpmQK91IDBt8yUj3aTNxFfGcnMFJ0vGda7v1u0xawHFfH5XAq+oRgAhlD8N33NgI=
SHA256 (Pkgfile) = 1ae5614dd3b84986ba496bb31bf131f920214958076c3ae0e8b49e41f18e1047
SHA256 (.footprint) = d3916e94908249d530356c1e79cef586cdeacf7bd488278a3f0c61ab5be2aab3
SHA256 (qownnotes-24.3.5.tar.xz) = b3739e4cae97a1d20cacd4ee2267658db4185f501b8fb48539998f2609b6b5ea
SHA256 (qownnotes-24.4.0.tar.xz) = 4b1a190f90d8b8f009670062c37f2365823e7bd144c63f9389495ccef6d79160

View File

@ -1,28 +1,21 @@
# Description: Plain-text file notepad with markdown support and ownCloud integration
# URL: https://www.qownnotes.org/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: qt5
# Optional: aspell graphite2 icu
# Depends on: aspell qt6-5compat qt6-svg qt6-websockets
name=qownnotes
version=24.3.5
version=24.4.0
release=1
source=(https://github.com/pbek/QOwnNotes/releases/download/v$version/qownnotes-$version.tar.xz)
build() {
if [[ ! -e /usr/include/xkbcommon/xkbcommon-x11.h ]]; then
printf '\e[31m%s\e[m\n' "libxkbcommon is not built with x11 support but needs to be!"
printf '\e[33m%s\e[m\n' "Install xkeyboard-config and rebuild libxkbcommon and qt5 in that order to build $name"
exit 1
fi
cd qownnotes-$version
cd $name-$version
echo "#define RELEASE \"CRUX\"" > release.h
/usr/lib/qt5/bin/qmake \
QMAKE_CFLAGS_RELEASE="${CFLAGS}" \
QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" \
QMAKE_LFLAGS_RELEASE="${LDFLAGS}"
/usr/lib/qt6/bin/qmake \
QMAKE_CFLAGS_RELEASE="${CFLAGS}" \
QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" \
QMAKE_LFLAGS_RELEASE="${LDFLAGS}"
make
install -D -m755 QOwnNotes $PKG/usr/bin/QOwnNotes