archpkgs/xournalpp-git/PKGBUILD

51 lines
1.4 KiB
Bash
Raw Normal View History

# Maintainer: Florian Freund <florian 88 freund aatt gmail ddoott ccoomm>
# Contributor: Mark Coolen <mark ddoott coolen aatt gmail ddoott ccoomm nniiccee!>
# Contributor: Keshav Amburay <(the ddoott ridikulus ddoott rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)>
_pkgname="xournalpp"
pkgname="${_pkgname}-git"
2021-09-27 13:56:07 +00:00
pkgver=nightly.r30.ge25f0b0a7
pkgrel=1
pkgdesc='Xournal++ is a handwriting Notetaking software with PDF annotation support. Supports Pen input like Wacom Tablets.'
arch=('i686' 'x86_64')
url="https://github.com/xournalpp/xournalpp"
license=('GPL2')
makedepends=('git' 'cmake' 'cppunit')
depends=('texlive-bin' 'gtk3' 'poppler-glib' 'libxml2' 'portaudio' 'libsndfile' 'lua' 'libzip')
conflicts=('xournalpp')
2021-01-11 14:18:48 +00:00
provides=(xournalpp)
install="xournalpp.install"
source=("${_pkgname}::git+https://github.com/xournalpp/xournalpp.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}/"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
mkdir -p "${srcdir}/${_pkgname}/build"
}
build() {
cd "${srcdir}/${_pkgname}/build"
2021-01-11 14:17:01 +00:00
cmake -DCMAKE_INSTALL_PREFIX="/usr/" -DENABLE_CPPUNIT=ON ..
cmake --build . --target pot
cmake --build . --target translations
cmake --build .
}
check() {
cd "${srcdir}/${_pkgname}/build"
cmake --build . --target test
}
package() {
cd "${srcdir}/${_pkgname}/build"
make DESTDIR="${pkgdir}/" install
}