46 lines
1.2 KiB
Bash
46 lines
1.2 KiB
Bash
# Template file for 'twaindsm'
|
|
pkgname=twaindsm
|
|
version=2.4.2
|
|
revision=2
|
|
_gitrev=d3fc5213d7b7333b68f852468f4278076115a9e0
|
|
wrksrc="twain-dsm-${_gitrev}"
|
|
build_wrksrc="TWAIN_DSM/src"
|
|
build_style=cmake
|
|
hostmakedepends="doxygen unzip"
|
|
short_desc="TWAIN data source manager"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="http://www.twain.org/"
|
|
distfiles="https://github.com/twain/twain-dsm/archive/${_gitrev}.tar.gz>${pkgname}-${version}.tar.gz"
|
|
checksum=2f2dee68c4dac31789ffd4c212e2a88396e14e598a31dc4200ed3b00f3e48bcb
|
|
|
|
pre_configure() {
|
|
sed -i CMakeLists.txt -e's; -Werror;;'
|
|
}
|
|
|
|
post_build() {
|
|
cd ${wrksrc}/TWAIN_DSM
|
|
# 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
|
|
}
|
|
|
|
twaindsm-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/lib/*.so
|
|
vmove usr/include
|
|
}
|
|
}
|
|
|
|
twaindsm-doc_package() {
|
|
short_desc+=" - documentation"
|
|
pkg_install() {
|
|
vmkdir usr/share/doc/${pkgname}
|
|
mv ${wrksrc}/TWAIN_DSM/doc/html ${PKGDESTDIR}/usr/share/doc/${pkgname}
|
|
}
|
|
}
|