summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f4cfb525e4f9412ffc320b0dd1bc8c4105772f8b (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
# Maintainer: Dmitry Kharitonov <darksab0r@gmail.com>
pkgname=dpsprep-git
_gitname=dpsprep
pkgver=r10.e52d7ca
pkgrel=1
pkgdesc="Python DJVU to PDF converter which preserves OCR text and bookmark metadata (e.g. TOC)"
url='https://github.com/kcroker/dpsprep'
arch=('any')
license=('GPL3')
makedepends=('git')
depends=('python2' 'python2-sexpdata' 'python2-argparse' 'djvulibre' 'ocrodjvu' 'pdfbeads' 'pdftk-bin' 'ruby-iconv')
optdepends=('jbig2enc-git: JBIG2 encoder provides much better PDF compression')
source=('git+git://github.com/kcroker/dpsprep.git')
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/$_gitname/"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    install -D -m644 "$srcdir/$_gitname/README.md" "$pkgdir/usr/share/doc/$_gitname/README.md"
    install -D -m755 "$srcdir/$_gitname/dpsprep" "$pkgdir/usr/bin/dpsprep"
}