1 # Maintainer: Balló György <ballogyor+arch at gmail dot com>
6 pkgdesc='Simple application to extract, merge, rotate and reorder pages of PDF documents'
8 url='https://junrrein.github.io/pdfslicer/'
10 depends=('gtkmm3' 'poppler' 'qpdf')
11 makedepends=('cmake' 'git' 'intltool' 'ninja')
12 _commit=c843e4b5bff170d920aaf36debd454d11ac6e03b # tags/v1.8.8
13 source=("git+https://github.com/junrrein/pdfslicer.git#commit=$_commit"
14 "git+https://github.com/ericniebler/range-v3.git"
15 "git+https://github.com/Microsoft/GSL.git"
16 "git+https://github.com/fmtlib/fmt.git"
28 git describe --tags | sed 's/^v//;s/-/+/g'
34 git submodule set-url third-party/range-v3 "$srcdir/range-v3"
35 git submodule set-url third-party/GSL "$srcdir/GSL"
36 git submodule set-url third-party/fmtlib "$srcdir/fmt"
39 patch -Np1 -i ../qpdf-11.diff
40 # https://patch-diff.githubusercontent.com/raw/prusa3d/PrusaSlicer/pull/6518.patch
41 patch -Np1 -i ../catch2_fix.diff
45 cmake -S $pkgname -B build -G Ninja -DCMAKE_INSTALL_PREFIX='/usr'
50 DESTDIR="$pkgdir" cmake --install build
51 rm -r "$pkgdir"/usr/{include,lib}