aboutsummaryrefslogtreecommitdiffstats
path: root/testing/leptonica/APKBUILD
blob: c7d1eaec38a30c22758936c5c97791a7424ed71f (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: Francesco Colista <fcolista@alpinelinux.org>
pkgname=leptonica
pkgver=1.73
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="092cea2e568cada79fff178820397922  leptonica-1.73.tar.gz"
sha256sums="19e4335c674e7b78af9338d5382cc5266f34a62d4ce533d860af48eaa859afc1  leptonica-1.73.tar.gz"
sha512sums="4808474d5941a91fbf542a22fed26ddc33f9c4baf2699096acf5e894b7e4e84889d165373b7d1df391a68cda8176113cf122f15203a9e38d3059e17140efc575  leptonica-1.73.tar.gz"