summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD29
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..15736db2a405
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = page_dewarp
+ pkgdesc = Text page dewarping using a cubic sheet model
+ pkgver = r18.835c7bb
+ pkgrel = 1
+ url = https://mzucker.github.io/2016/08/15/page-dewarping.html
+ arch = any
+ license = MIT
+ depends = python2
+ depends = opencv
+ depends = python2-numpy
+ depends = python2-scipy
+ depends = python2-pillow
+ source = git+http://github.com/mzucker/page_dewarp.git
+ md5sums = SKIP
+
+pkgname = page_dewarp
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..37ca86423b34
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Fernando Cladera <fcladera [at] fcladera [dot] com>
+
+pkgname=page_dewarp
+pkgver=r18.835c7bb
+pkgrel=1
+pkgdesc="Text page dewarping using a cubic sheet model"
+url='https://mzucker.github.io/2016/08/15/page-dewarping.html'
+arch=('any')
+license=('MIT')
+depends=('python2' 'opencv' 'python2-numpy' 'python2-scipy' 'python2-pillow')
+source=('git+http://github.com/mzucker/page_dewarp.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/$pkgname"
+ sed -i '1 s/python/python2/g' page_dewarp.py
+}
+
+
+
+package() {
+ cd "$srcdir/$pkgname"
+ install -Dm755 page_dewarp.py $pkgdir/usr/bin/page_dewarp
+}