34 lines
959 B
Bash
34 lines
959 B
Bash
|
# Template file for 'libxlsxwriter'
|
||
|
pkgname=libxlsxwriter
|
||
|
version=0.7.7
|
||
|
revision=1
|
||
|
build_style=cmake
|
||
|
configure_args="-DBUILD_SHARED_LIBS=ON"
|
||
|
wrksrc="${pkgname}-RELEASE_${version}"
|
||
|
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=cce28d1a7e7887b105c7b0fd20b7be84f62070569f7a28e7779ceaec6be3847b
|
||
|
|
||
|
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"
|
||
|
}
|
||
|
}
|