summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDmitry Kharitonov2015-07-10 16:03:24 +0500
committerDmitry Kharitonov2015-07-10 16:03:24 +0500
commitc31a6b33a2431c34de6c2468437b20a8d2bccd7f (patch)
treed1c733d9f173fac0137627fa1afa2979766ae6a7 /PKGBUILD
downloadaur-c31a6b33a2431c34de6c2468437b20a8d2bccd7f.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..62efd56f627
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Dmitry Kharitonov <darksab0r@gmail.com>
+pkgname=dpsprep-git
+_gitname=dpsprep
+pkgver=r7.265cdb1
+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=('i686' 'x86_64')
+license=('GPL')
+depends=('git' 'python2' 'python2-sexpdata' 'python2-argparse' 'djvulibre' 'ocrodjvu' 'pdfbeads' 'pdftk-bin')
+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)"
+}
+
+prepare() {
+ cd "$srcdir/$_gitname/"
+ sed -i 's/python/python2/g' dpsprep
+}
+
+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"
+} \ No newline at end of file