void-packages/srcpkgs/libxlsxwriter/template
2020-06-04 10:00:41 -05:00

33 lines
943 B
Bash

# Template file for 'libxlsxwriter'
pkgname=libxlsxwriter
version=0.9.5
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 <abenson+void@gmail.com>"
license="BSD-2-Clause"
homepage="https://libxlsxwriter.github.io/"
distfiles="https://github.com/jmcnamara/libxlsxwriter/archive/RELEASE_${version}.tar.gz"
checksum=a42daf9a96a5ba24d46a56bd0ad0d44bc4bc35f73b8aed22c4fa5f8f3e8eb8be
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"
}
}