32 lines
865 B
Bash
32 lines
865 B
Bash
# Template file for 'gtest'
|
|
pkgname=gtest
|
|
version=1.12.1
|
|
revision=1
|
|
build_style=cmake
|
|
make_cmd=make # using make to avoid a cycle: ninja -> gtest -> ninja
|
|
configure_args="-DBUILD_SHARED_LIBS=ON -DCMAKE_SKIP_RPATH=ON"
|
|
hostmakedepends="unzip"
|
|
short_desc="Google's framework for writing C++ tests"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://github.com/google/googletest"
|
|
distfiles="https://github.com/google/googletest/archive/release-${version}.tar.gz"
|
|
checksum=81964fe578e9bd7c94dfdb09c8e4d6e6759e19967e397dbea48d1c10e45d0df2
|
|
|
|
export CMAKE_GENERATOR="Unix Makefiles"
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
gtest-devel_package() {
|
|
depends="gtest>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/cmake
|
|
}
|
|
}
|