void-packages/srcpkgs/gtest/template

30 lines
903 B
Bash

# Template build file for 'gtest'
pkgname=gtest
version=1.7.0
revision=1
build_style=cmake
short_desc="Google's framework for writing C++ tests"
maintainer="Enno Boland <eb@s01.de>"
license="MIT"
hostmakedepends="unzip cmake"
homepage="https://code.google.com/p/googletest"
distfiles="https://googletest.googlecode.com/files/${pkgname}-${version}.zip"
checksum=247ca18dd83f53deb1328be17e4b1be31514cedfc1e3424f672bf11fd7e0d60d
configure_args="-DBUILD_SHARED_LIBS=ON -DCMAKE_SKIP_RPATH=ON"
do_install() {
vinstall build/libgtest.so 644 usr/lib libgtest.so
vinstall build/libgtest_main.so 644 usr/lib libgtest_main.so
vmkdir usr/include/gtest/internal
vcopy include/gtest/*.h usr/include/gtest
vcopy include/gtest/internal/*.h usr/include/gtest/internal
}
gtest-devel_package() {
depends="gtest>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
}
}