summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntonio Rojas2021-05-08 09:21:35 +0000
committerAntonio Rojas2021-05-08 09:21:35 +0000
commit9976ea8c38268e8f7daf3c6c3b6153fea7b4f6a9 (patch)
tree18fdcb6d06726f510b5086fdd4f31553fdfcaad5
downloadaur-9976ea8c38268e8f7daf3c6c3b6153fea7b4f6a9.tar.gz
Dropped from repos
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD42
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7132f7a5ead
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = pdf2djvu
+ pkgdesc = Creates DjVu files from PDF files
+ pkgver = 0.9.17.1
+ pkgrel = 9
+ url = https://jwilk.net/software/pdf2djvu
+ arch = x86_64
+ license = GPL
+ makedepends = python2-nose
+ makedepends = ttf-liberation
+ makedepends = boost
+ depends = poppler
+ depends = djvulibre
+ depends = gcc-libs
+ depends = graphicsmagick
+ depends = exiv2
+ source = https://github.com/jwilk/pdf2djvu/releases/download/0.9.17.1/pdf2djvu-0.9.17.1.tar.xz
+ source = https://github.com/jwilk/pdf2djvu/releases/download/0.9.17.1/pdf2djvu-0.9.17.1.tar.xz.asc
+ validpgpkeys = CDB5A1243ACDB63009AD07212D4EB3A6015475F5
+ sha256sums = 5bbbb7bdc7858a1eeac6ff270e5a323390f2abb6bd3b0b2ae08c1965272226a3
+ sha256sums = SKIP
+
+pkgname = pdf2djvu
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8441ed519f7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Contributor: Paulo Matias <matiasΘarchlinux-br·org>
+# Maintainer: Jelle van der Waa <jelle@vdwaa.nl>
+
+pkgname=pdf2djvu
+pkgver=0.9.17.1
+pkgrel=9
+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}"
+}