2016-07-04 20:35:29 +00:00
|
|
|
# Template file for 'twaindsm'
|
|
|
|
pkgname=twaindsm
|
|
|
|
version=2.3.0
|
2016-07-04 23:47:39 +00:00
|
|
|
revision=3
|
2016-07-04 20:35:29 +00:00
|
|
|
wrksrc="${pkgname}-${version}.orig"
|
|
|
|
build_wrksrc="src"
|
|
|
|
build_style=cmake
|
2016-07-04 23:47:39 +00:00
|
|
|
hostmakedepends="doxygen unzip"
|
2016-07-04 20:35:29 +00:00
|
|
|
short_desc="TWAIN data source manager"
|
|
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
|
|
|
license="LGPL-2.1"
|
|
|
|
homepage="http://www.twain.org"
|
|
|
|
distfiles="$SOURCEFORGE_SITE/twain-dsm/TWAIN%20DSM%20${version%.*.*}%20Source/${pkgname}-${version}.source.zip"
|
|
|
|
checksum=9a51ba95b1e51bb5a5fb855799d802269c147b2ba362e030150b1c9980f988ce
|
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
sed -i CMakeLists.txt -e's; -Werror;;'
|
|
|
|
}
|
|
|
|
|
2016-07-04 23:47:39 +00:00
|
|
|
post_build() {
|
|
|
|
cd ${wrksrc}
|
|
|
|
# Fix backslash in pathname
|
|
|
|
sed -i Doxyfile -e's;.\\src;./src;g'
|
|
|
|
# Update Doxyfile
|
|
|
|
doxygen -u
|
|
|
|
# Generate documentation and redirect warnings to /dev/null
|
|
|
|
doxygen 2> /dev/null
|
|
|
|
}
|
|
|
|
|
2016-07-04 20:35:29 +00:00
|
|
|
twaindsm-devel_package() {
|
|
|
|
short_desc+=" - development files"
|
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/*.so
|
|
|
|
vmove usr/include
|
|
|
|
}
|
|
|
|
}
|
2016-07-04 23:47:39 +00:00
|
|
|
|
|
|
|
twaindsm-doc_package() {
|
|
|
|
short_desc+=" - documentation"
|
|
|
|
noarch=yes
|
|
|
|
pkg_install() {
|
|
|
|
vmkdir usr/share/doc/${pkgname}
|
|
|
|
mv ${wrksrc}/doc/html ${PKGDESTDIR}/usr/share/doc/${pkgname}
|
|
|
|
}
|
|
|
|
}
|