43 lines
1 KiB
Bash
43 lines
1 KiB
Bash
|
# Template file for 'zinnia'
|
||
|
pkgname=zinnia
|
||
|
version=0.06
|
||
|
revision=1
|
||
|
short_desc="OCR system for hand-written input"
|
||
|
maintainer="Matthias von Faber <mvf@gmx.eu>"
|
||
|
homepage="http://taku910.github.io/zinnia/"
|
||
|
license="2-clause-BSD"
|
||
|
build_style=gnu-configure
|
||
|
hostmakedepends="libtool pkg-config"
|
||
|
makedepends="libtool pkg-config"
|
||
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${version}/${pkgname}-${version}.tar.gz"
|
||
|
checksum=ece3af93f937282971634fd81d3e997f848e8cfa958220e26a4564ca064ac20b
|
||
|
|
||
|
post_install() {
|
||
|
vlicense COPYING
|
||
|
}
|
||
|
|
||
|
libzinnia_package() {
|
||
|
short_desc+=" - runtime library"
|
||
|
pkg_install() {
|
||
|
vmove "usr/lib/*.so.*"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
pre_build() {
|
||
|
# Force flags from environment
|
||
|
sed -i -e 's|^CFLAGS\b|#CFLAGS|' \
|
||
|
-e 's|^CXXFLAGS\b|#CXXFLAGS|' \
|
||
|
-e 's|^LDFLAGS\b|#LDFLAGS|' Makefile
|
||
|
}
|
||
|
|
||
|
libzinnia-devel_package() {
|
||
|
depends="lib${sourcepkg}>=${version}_${revision}"
|
||
|
short_desc+=" - development files"
|
||
|
pkg_install() {
|
||
|
vmove usr/include
|
||
|
vmove usr/lib/pkgconfig
|
||
|
vmove "usr/lib/*.a"
|
||
|
vmove "usr/lib/*.so"
|
||
|
}
|
||
|
}
|