blob: 4df35248c9bbe8c1e4c58926d71205575f6bdd74 (
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
|
# Maintainer: Philipp Kühn <p dot kuehn at posteo dot de>
pkgname=sane-scan-pdf-git
pkgver=1.2.r29.g5bb8cd9
pkgrel=1
pkgdesc="Sane scanning bash script with OCR and deskew support."
arch=('any')
license=('GPL3')
provides=('sane-scan-pdf')
url="https://github.com/rocketraman/sane-scan-pdf"
depends=('bash' 'netpbm' 'ghostscript' 'poppler' 'units' 'imagemagick')
optdepends=('unpaper: for software deskew'
'util-linux: for properly ordered verbose logs'
'tesseract: to make searchable PDFs'
'parallel: to constrain resource usage during page processing'
'bc: whitepage detection percentage calculations')
makedepends=('git')
source=("$pkgname::git+https://github.com/rocketraman/sane-scan-pdf")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/sane-scan-pdf-git"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
cd "$pkgname"
install -Dm755 -t "$pkgdir/usr/bin" scan scan_perpage
}
|