aboutsummaryrefslogtreecommitdiffstats
path: root/testing/leptonica/APKBUILD
blob: 81e0ac14a591dbd013547f8e231d26c734e0251d (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=leptonica
pkgver=1.72
pkgrel=0
pkgdesc="Software that is broadly useful for image processing and image analysis applications"
url="http://www.leptonica.com/"
arch="all"
license="custom"
depends=""
depends_dev="libjpeg-turbo-dev tiff-dev libpng-dev zlib-dev giflib-dev libwebp-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
source="http://www.leptonica.com/source/leptonica-$pkgver.tar.gz"

_builddir="$srcdir"/leptonica-$pkgver
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
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./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
}

md5sums="7581db29f8442197ce68e766c6047c4b  leptonica-1.72.tar.gz"
sha256sums="79d5eadd32658c9fea38700c975d60aa3d088eaa3e307659f004d40834de1f56  leptonica-1.72.tar.gz"
sha512sums="8cb7acade68fbd9239dee4c24c5f35fd4cbb4db9e36fbf596478bd1e4635e45034664a16cec21c084091fbad64b4b6e78a4cb43fda8d0c0fc32f55a8cbf110d2  leptonica-1.72.tar.gz"