33 lines
936 B
Bash
33 lines
936 B
Bash
# Template file for 're2'
|
|
pkgname=re2
|
|
version=2024.06.01
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DBUILD_SHARED_LIBS=ON -DRE2_USE_ICU=ON"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="abseil-cpp-devel icu-devel"
|
|
# This dependency to avoid rebuild electron with new re2
|
|
# Drop whenever those packages are rebuilt or dropped
|
|
depends="libre2.10"
|
|
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=7326c74cddaa90b12090fcfc915fe7b4655723893c960ee3c2c66e85c5504b6c
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
re2-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}-${version}_${revision} abseil-cpp-devel"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/cmake
|
|
}
|
|
}
|