summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 37ca86423b341774108cf164f5345b30a01624a6 (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
# 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
}