desktop/leptonica/PKGBUILD
2014-11-18 14:41:15 +00:00

35 lines
1.1 KiB
Bash

# contributor (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
pkgname=leptonica
pkgver=1.71
pkgrel=1
pkgdesc="Software that is broadly useful for image processing and image analysis applications"
arch=('i686' 'x86_64')
url="http://www.leptonica.com/"
license=('custom')
depends=('glibc')
makedepends=('giflib' 'gnuplot' 'libjpeg' 'libpng' 'libtiff' 'zlib')
categories=('graphics')
# 'webp'
optdepends=('giflib: for supporting gif files'
'gnuplot: gnuplot support'
'libjpeg: for supporting jpeg files'
'libpng: for supporting png files'
'libtiff: for supporting tiff files'
'zlib: for supporting compressed files')
# 'webp: for supporting webp files'
source=(http://www.leptonica.com/source/leptonica-${pkgver}.tar.gz)
md5sums=('790f34d682e6150c12c54bfe4a824f7f')
build() {
cd ${srcdir}/leptonica-${pkgver}
./configure --prefix=/usr
make
}
package() {
cd ${srcdir}/leptonica-${pkgver}
make DESTDIR=${pkgdir} install
install -D leptonica-license.txt ${pkgdir}/usr/share/licenses/leptonica/leptonica-license.txt
}