[arch-commits] Commit in pdf2djvu/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Dec 2 08:31:25 UTC 2020
Date: Wednesday, December 2, 2020 @ 08:31:24
Author: felixonmars
Revision: 769110
archrelease: copy trunk to community-staging-x86_64
Added:
pdf2djvu/repos/community-staging-x86_64/
pdf2djvu/repos/community-staging-x86_64/PKGBUILD
(from rev 769109, pdf2djvu/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: pdf2djvu/repos/community-staging-x86_64/PKGBUILD (from rev 769109, pdf2djvu/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-12-02 08:31:24 UTC (rev 769110)
@@ -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=4
+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