blob: aa94d6ccea6a118dff8b434ce1926964b8102b4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Maintainer: thynkon <thynkon at protonmail dot com>
# 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"
pkgver=1.2.3.r332.g67289c850
pkgrel=1
pkgdesc='Xournal++ is a handwriting Notetaking software with PDF annotation support. Supports Pen input like Wacom Tablets.'
arch=('i686' 'x86_64' 'aarch64')
url="https://github.com/xournalpp/xournalpp"
license=('GPL2')
depends=('gtk3' 'gtksourceview4' 'poppler-glib' 'libxml2' 'portaudio' 'libsndfile' 'lua53' 'lua53-lgi' 'libzip')
makedepends=('git' 'cmake' 'help2man' 'gtest')
optdepends=('texlive-latexextra: LaTeX package')
conflicts=('xournalpp')
source=("${_pkgname}::git+https://github.com/xournalpp/xournalpp.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}/"
git describe --long --tags --exclude nightly | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
mkdir -p "${srcdir}/${_pkgname}/build"
}
build() {
cd "${srcdir}/${_pkgname}/build"
cmake \
-G 'Unix Makefiles' \
-DCMAKE_BUILD_TYPE='None' \
-DCMAKE_INSTALL_PREFIX='/usr/' \
-Wno-dev \
-DENABLE_GTEST=ON ..
cmake --build .
cmake --build . --target test-units
}
check() {
cd "${srcdir}/${_pkgname}/build"
./test/test-units
}
package() {
cd "${srcdir}/${_pkgname}/build"
DESTDIR="${pkgdir}/" cmake --build . --target install
}
|