desktop/leptonica/PKGBUILD
2015-05-04 20:06:56 +00:00

33 lines
1.1 KiB
Bash

pkgname=leptonica
pkgver=1.72
pkgrel=1
pkgdesc="Software that is broadly useful for image processing and image analysis applications"
arch=('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)
sha512sums=('8cb7acade68fbd9239dee4c24c5f35fd4cbb4db9e36fbf596478bd1e4635e45034664a16cec21c084091fbad64b4b6e78a4cb43fda8d0c0fc32f55a8cbf110d2')
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/LICENSE
}