blob: c80ebefc8794c7795078784d38c4b09962944612 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=unpaper
pkgver=6.1
pkgrel=0
pkgdesc="post-processing tool for scanned sheets of paper"
url="https://github.com/Flameeyes/unpaper"
arch="all"
license="GPL"
depends=""
depends_dev="ffmpeg-dev"
makedepends="$depends_dev automake autoconf libtool libxslt"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Flameeyes/unpaper/tarball/unpaper-$pkgver"
_builddir="$srcdir/Flameeyes-unpaper-5e7fdc7"
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
aclocal && automake --add-missing && autoconf
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/lib/*.la
}
md5sums="ade1513be12ffc73063db0b375017ca7 unpaper-6.1.tar.gz"
sha256sums="9421fa66c8506f12dc0cc4c3814f1b41903420f6afeecd0db50fae49fcdb5740 unpaper-6.1.tar.gz"
sha512sums="96e4f5748f836044d47a08b5c61f4367c8497d64b61e588a38b11ae99261a051c2c77e61aef85803dcd904aa8b03d78a5fa1c467bb3e632dbe9dbd68c4719557 unpaper-6.1.tar.gz"
|