# Maintainer: Fabio 'Lolix' Loli -> https://github.com/FabioLolix # Contributor: erk pkgname=vnote-git pkgver=3.13.1.r3.g17af3b8d pkgrel=1 pkgdesc="A Vim-inspired note-taking application, especially for Markdown." arch=(x86_64 i686 arm armv6h armv7h aarch64) url='https://vnotex.github.io/vnote/en_us/' license=(LGPL3) depends=(qt5-base qt5-webengine qt5-svg qt5-x11extras) makedepends=(git) source=("git+https://github.com/vnotex/vnote.git" "vnotex-vtextedit::git+https://github.com/vnotex/vtextedit" "vnotex-QHotkey::git+https://github.com/vnotex/QHotkey.git" "vnotex-syntax-highlighting::git+https://github.com/vnotex/syntax-highlighting" "vnotex-hunspell::git+https://github.com/vnotex/hunspell" "vnotex-sonnet::git+https://github.com/vnotex/sonnet") sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP') pkgver() { cd "${srcdir}/${pkgname%-git}" git describe --long --tags --exclude continuous-build | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { cd "${srcdir}/${pkgname%-git}" install -d build git submodule init git config 'submodule.libs/vtextedit.url' "${srcdir}/vnotex-vtextedit" git config 'submodule.libs/QHotkey.url' "${srcdir}/vnotex-QHotkey" git submodule update cd "libs/vtextedit" git submodule init git config 'submodule.src/libs/syntax-highlighting.url' "${srcdir}/vnotex-syntax-highlighting" git config 'submodule.src/libs/hunspell.url' "${srcdir}/vnotex-hunspell" git config 'submodule.src/libs/sonnet.url' "${srcdir}/vnotex-sonnet" git submodule update } build() { cd "${srcdir}/${pkgname%-git}/build" qmake-qt5 ../vnote.pro make } package() { cd "${srcdir}/${pkgname%-git}/build" make INSTALL_ROOT="$pkgdir" install }