void-packages/srcpkgs/zinnia/template
UsernameRandomlyGenerated e2f5af36fc zinnia: fix template
2021-03-20 21:30:22 -04:00

42 lines
1 KiB
Bash

# Template file for 'zinnia'
pkgname=zinnia
version=0.06
revision=1
build_style=gnu-configure
hostmakedepends="libtool pkg-config"
makedepends="libtool pkg-config"
short_desc="OCR system for hand-written input"
maintainer="Matthias von Faber <mvf@gmx.eu>"
license="BSD-2-Clause"
homepage="https://taku910.github.io/zinnia/"
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"
}
}