void-packages/srcpkgs/qownnotes/template

27 lines
955 B
Bash

# Template file for 'qownnotes'
pkgname=qownnotes
version=19.12.0
revision=1
build_style=qmake
hostmakedepends="pkg-config qt5-qmake"
makedepends="botan-devel qt5-declarative-devel qt5-svg-devel
qt5-xmlpatterns-devel qt5-websockets-devel"
depends="qt5-plugin-sqlite"
short_desc="Plain-text file notepad and todo-list manager with markdown support"
maintainer="travankor <travankor@tuta.io>"
license="GPL-2.0-only"
homepage="https://www.qownnotes.org"
changelog="https://www.qownnotes.org/changelog/QOwnNotes"
distfiles="https://download.tuxfamily.org/${pkgname}/src/${pkgname}-${version}.tar.xz"
checksum=4cf269011f783db74d90bb7593974ceb9d5a4844574fa05c08096194cd79c524
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-declarative-devel
qt5-svg-devel qt5-xmlpatterns-devel qt5-websockets-devel"
fi
pre_build() {
sed -i '5i USE_SYSTEM_BOTAN = 1' libraries/botan/botan.pri
sed -i 's/botan-2.12/botan-2/' libraries/botan/botan.pri
}