# Template file for 'libre2.10'
#
# packaged to avoid rebuild electron and qt5-webengine
pkgname=libre2.10
version=2023.03.01
revision=1
build_style=gnu-makefile
short_desc="Efficient, principled regular expression library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/google/re2"
distfiles="https://github.com/google/re2/archive/${version//./-}.tar.gz"
checksum=7a9a4824958586980926a300b4717202485c4b4115ac031822e29aa4ef207e48
provides="re2-${version}"

post_install() {
	vlicense LICENSE
	# This package to provides libre2.so.10,
	# those packages that aint rebuilt will use this package
	# They can be rebuild with new re2-devel
	rm -rf ${DESTDIR}/usr/include
	rm -rf ${DESTDIR}/usr/lib/*.a
	rm -rf ${DESTDIR}/usr/lib/*.so
	rm -rf ${DESTDIR}/usr/lib/pkgconfig
}
