[arch-commits] Commit in pdfslicer (3 files)
Balló György
bgyorgy at archlinux.org
Sun May 31 09:48:45 UTC 2020
Date: Sunday, May 31, 2020 @ 09:48:45
Author: bgyorgy
Revision: 637633
archrelease: copy trunk to community-x86_64
Added:
pdfslicer/repos/
pdfslicer/repos/community-x86_64/
pdfslicer/repos/community-x86_64/PKGBUILD
(from rev 637632, pdfslicer/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: pdfslicer/repos/community-x86_64/PKGBUILD (from rev 637632, pdfslicer/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD (rev 0)
+++ repos/community-x86_64/PKGBUILD 2020-05-31 09:48:45 UTC (rev 637633)
@@ -0,0 +1,49 @@
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+
+pkgname=pdfslicer
+pkgver=1.8.5
+pkgrel=1
+pkgdesc="Simple application to extract, merge, rotate and reorder pages of PDF documents"
+arch=(x86_64)
+url="https://junrrein.github.io/pdfslicer/"
+license=(GPL3)
+depends=(gtkmm3 poppler qpdf)
+makedepends=(cmake git intltool)
+_commit=d21ca032b962bfad8edc3c7c136270b176f95828 # tags/v1.8.5^0
+source=("git+https://github.com/junrrein/pdfslicer.git#commit=$_commit"
+ "git+https://github.com/ericniebler/range-v3.git"
+ "git+https://github.com/Microsoft/GSL.git"
+ "git+https://github.com/fmtlib/fmt.git")
+sha256sums=('SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP')
+
+pkgver() {
+ cd $pkgname
+ git describe --tags | sed 's/^v//;s/-/+/g'
+}
+
+prepare() {
+ [[ -d build ]] || mkdir build
+
+ cd $pkgname
+ git submodule init
+ git submodule set-url third-party/range-v3 "$srcdir/range-v3"
+ git submodule set-url third-party/GSL "$srcdir/GSL"
+ git submodule set-url third-party/fmtlib "$srcdir/fmt"
+ git submodule update
+}
+
+build() {
+ cd build
+ cmake -G "Unix Makefiles" ../$pkgname/ \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir" install
+ rm -r "$pkgdir"/usr/{include,lib}
+}
More information about the arch-commits
mailing list