void-packages/srcpkgs/asio/template
Nathan Owens df6e6da579 asio: update to 1.18.0
Closes: #26069 [via git-merge-pr]
2020-11-10 09:19:20 -05:00

23 lines
678 B
Bash

# Template file for 'asio'
pkgname=asio
version=1.18.0
revision=1
build_style=gnu-configure
short_desc="Cross-platform C++ library for ASynchronous network I/O"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSL-1.0"
homepage="http://think-async.com/Asio/"
distfiles="${SOURCEFORGE_SITE}/asio/asio-${version}.tar.bz2"
checksum=9d539e7c09aa6394d512c433c5601c1f26dc4975f022ad7d5e8e57c3b635b370
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
*-musl) # Enable strerror_r(3) version for musl libc
vsed -e "/#define ASIO_IMPL_ERROR_CODE_IPP/a #define MUSL_LIBC" \
-i ${wrksrc}/include/asio/impl/error_code.ipp
esac
}
post_install() {
vlicense LICENSE_1_0.txt
}