summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 48416b9144271d5f8ac08625853d41bb0a9e1332 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Contributor: Anton Leontiev <bunder /at/ t-25.ru>
pkgname=djvubind
pkgver=1.2.1
pkgrel=1
pkgdesc='A tool to create highly compressed djvu files with ocr, metadata, and bookmarks'
arch=('any')
url='http://code.google.com/p/djvubind/'
license=('GPL3')
depends=('python' 'djvulibre' 'imagemagick' 'tesseract')
makedepends=('python')
optdepends=('minidjvu: for higher black-and-white compression'
	'cuneiform: an alternative OCR system')
source=(http://djvubind.googlecode.com/files/$pkgname-$pkgver.tar.bz2
	djvubind-1.2.1-compress.patch)
md5sums=('027ee90fec7d6ee5ee921eebfae1dc2d'
         '6fb6019bbc7e0171241399a145ef0b25')

check() {
	cd "$srcdir/$pkgname-$pkgver/unittests"
	python3 ./unittests.py
}

package() {
	cd "$srcdir/$pkgname-$pkgver"

	for i in ../*.patch; do
		patch -i "$i" -p1
	done

	python3 ./setup.py install --root "$pkgdir"
}