# Maintainer: Gaetan Bisson <bisson@archlinux.org>

pkgname=xournalpp
pkgver=1.0.12
_commit=cc44b206b75eac2cce98b3124d7e6292c5492614
pkgrel=1
pkgdesc='Handwriting notetaking software with PDF annotation support'
url='https://github.com/xournalpp/xournalpp'
license=('GPL2')
arch=('x86_64')
makedepends=('git' 'cmake' 'doxygen' 'graphviz')
depends=('gtk3' 'poppler-glib' 'libxml2' 'portaudio' 'libsndfile' 'lua'
         'libzip' 'texlive-bin')
source=("git+https://github.com/xournalpp/xournalpp.git#commit=$_commit")
sha256sums=('SKIP')

replaces=('xournal')

build() {
	cd "${srcdir}/${pkgname}"
	cmake -DCMAKE_INSTALL_PREFIX=/usr
	make
}

package() {
	cd "${srcdir}/${pkgname}"
	make DESTDIR="${pkgdir}" install
}
