[arch-commits] Commit in pdf2djvu/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Tue Mar 2 15:13:51 UTC 2021
Date: Tuesday, March 2, 2021 @ 15:13:50
Author: foutrelis
Revision: 877493
archrelease: copy trunk to community-staging-x86_64
Added:
pdf2djvu/repos/community-staging-x86_64/
pdf2djvu/repos/community-staging-x86_64/PKGBUILD
(from rev 877492, pdf2djvu/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: pdf2djvu/repos/community-staging-x86_64/PKGBUILD (from rev 877492, pdf2djvu/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-03-02 15:13:50 UTC (rev 877493)
@@ -0,0 +1,42 @@
+# Contributor: Paulo Matias <matiasΘarchlinux-br·org>
+# Maintainer: Jelle van der Waa <jelle at vdwaa.nl>
+
+pkgname=pdf2djvu
+pkgver=0.9.17.1
+pkgrel=7
+pkgdesc="Creates DjVu files from PDF files"
+arch=('x86_64')
+url="https://jwilk.net/software/pdf2djvu"
+license=('GPL')
+depends=('poppler' 'djvulibre' 'gcc-libs' 'graphicsmagick' 'exiv2')
+makedepends=('python2-nose' 'ttf-liberation' 'boost')
+source=(https://github.com/jwilk/pdf2djvu/releases/download/${pkgver}/pdf2djvu-${pkgver}.tar.xz{,.asc})
+sha256sums=('5bbbb7bdc7858a1eeac6ff270e5a323390f2abb6bd3b0b2ae08c1965272226a3'
+ 'SKIP')
+validpgpkeys=('CDB5A1243ACDB63009AD07212D4EB3A6015475F5')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+
+ # https://github.com/jwilk/pdf2djvu/issues/144
+ sed -i 's/poppler-splash/poppler/' configure
+}
+
+build() {
+ cd ${pkgname}-${pkgver}
+
+ ./configure --prefix=/usr
+ make
+}
+
+check() {
+ cd ${pkgname}-${pkgver}
+
+ make PYTHON=python2 test
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+
+ make install DESTDIR="${pkgdir}"
+}
More information about the arch-commits
mailing list