# Contributor: Carlo Landmeter # Maintainer: Francesco Colista pkgname=leptonica pkgver=1.83.1 pkgrel=0 pkgdesc="Software that is broadly useful for image processing and image analysis applications" url="http://www.leptonica.com/" arch="all" license="custom" makedepends="automake autoconf libtool libjpeg-turbo-dev tiff-dev libpng-dev zlib-dev giflib-dev libwebp-dev" subpackages="$pkgname-dev $pkgname-doc" source="https://github.com/DanBloomberg/leptonica/releases/download/$pkgver/leptonica-$pkgver.tar.gz disable-one-failing-test.patch" prepare() { default_prepare autoreconf -fi } build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var make } check() { make check } package() { make DESTDIR="$pkgdir" install rm -f "$pkgdir"/usr/lib/*.a "$pkgdir"/usr/lib/*.la install -Dm644 leptonica-license.txt "$pkgdir/usr/share/licenses/$pkgname/leptonica-license.txt" } sha512sums=" 14c76b8795e494637cd225982cd27a1cd82d22b34c0c0d6ed061530c0ed8cec87fc1c8482bbda8f56a04f240b9fb50d481b8fffe5df846958cb146f9d2d51553 leptonica-1.83.1.tar.gz 37afa0a0b7e0b5ef3ed0bd5106ae221bfb48d966ba02f308076eca4a469d79e69b42d86bdd95563bdc6fe976ed218848160670fa7a261ad6a393e3755962952a disable-one-failing-test.patch "