# Maintainer: Fabio 'Lolix' Loli # Contributor: erk pkgname=vnote pkgver=2.6 pkgrel=1 pkgdesc="A Vim-inspired note-taking application, especially for Markdown." arch=(x86_64 i686 arm armv6h armv7h aarch64) url="https://tamlok.github.io/vnote/" license=(MIT) depends=(qt5-webengine qt5-svg) makedepends=(git) source=("git+https://github.com/tamlok/vnote.git#tag=v${pkgver}" "git+https://github.com/chjj/marked.git" "git+https://github.com/tamlok/hoedown.git") sha256sums=('SKIP' 'SKIP' 'SKIP') prepare() { cd "$pkgname" git submodule init git config 'submodule.src/utils/marked.url' "${srcdir}/marked" git config 'submodule.hoedown.url' "${srcdir}/hoedown" git submodule update install -d build } build() { cd "$pkgname/build" qmake ../VNote.pro make } package() { cd "$pkgname/build" make INSTALL_ROOT="$pkgdir" install install -Dm644 "$srcdir/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }