void-packages/srcpkgs/gtest/template

29 lines
800 B
Bash

# Template file for 'gtest'
pkgname=gtest
version=1.10.0
revision=1
wrksrc="googletest-release-${version}"
build_style=cmake
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>${pkgname}-${version}.tar.gz"
checksum=9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb
post_install() {
vlicense LICENSE
}
gtest-devel_package() {
depends="gtest>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/cmake
}
}