# Template file for 'libxlsxwriter' pkgname=libxlsxwriter version=1.0.6 revision=1 wrksrc="${pkgname}-RELEASE_${version}" build_style=cmake configure_args="-DBUILD_SHARED_LIBS=ON" makedepends="zlib-devel" short_desc="Library for creating Excel XLSX files" maintainer="Andrew Benson " license="BSD-2-Clause" homepage="https://libxlsxwriter.github.io/" distfiles="https://github.com/jmcnamara/libxlsxwriter/archive/RELEASE_${version}.tar.gz" checksum=6217d2940a44c2eac3b48942e83e1320a871e47aabdb4047484426539e45e930 pre_configure() { sed -i "/^add_library/a set_target_properties(\${PROJECT_NAME} \ PROPERTIES VERSION ${version} SOVERSION ${version%%.*})" \ CMakeLists.txt } post_install() { vlicense License.txt } libxlsxwriter-devel_package() { short_desc+=" - development files" depends="${makedepends} ${sourcepkg}>=${version}_${revision}" pkg_install() { vmove usr/include vmove "/usr/lib/*.so" vmove usr/lib/pkgconfig } }