void-packages/srcpkgs/leptonica/template
Jürgen Buchmüller 4ab383144b
leptonica: update to 1.78.0
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2019-03-28 12:48:39 +01:00

41 lines
1.1 KiB
Bash

# Template file for 'leptonica'
pkgname=leptonica
version=1.78.0
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="libopenjpeg2-devel libwebp-devel"
short_desc="Image processing and analysis library"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="BSD-2-Clause"
homepage="http://leptonica.org/"
distfiles="http://leptonica.org/source/${pkgname}-${version}.tar.gz"
checksum=e2ed2e81e7a22ddf45d2c05f0bc8b9ae7450545d995bfe28517ba408d14a5a88
post_install() {
vdoc moller52.jpg
vdoc version-notes.html
vlicense leptonica-license.txt
}
leptonica-devel_package() {
depends="leptonica>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include/leptonica
vmove usr/lib/pkgconfig/lept.pc
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vdoc style-guide.txt
}
}
leptonica-examples_package() {
depends="leptonica>=${version}_${revision}"
short_desc+=" - library tests and demos"
pkg_install() {
vmkdir usr/share/leptonica
rm -f -r prog/*.{l,}o prog/.deps prog/.libs
# binaries, example source, images and data
vcopy prog usr/share/leptonica
}
}