void-packages/srcpkgs/gmock/template

35 lines
948 B
Bash
Raw Normal View History

2014-05-21 21:53:17 +02:00
# Template build file for 'gmock'
pkgname=gmock
version=1.7.0
revision=5
2014-05-21 21:53:17 +02:00
build_style=gnu-configure
short_desc="Google C++ Mocking Framework"
maintainer="Enno Boland <eb@s01.de>"
license="BSD"
hostmakedepends="unzip"
makedepends="gtest-devel"
depends="gtest"
2014-05-21 21:53:17 +02:00
homepage="https://code.google.com/p/googlemock"
distfiles="https://googlemock.googlecode.com/files/${pkgname}-${version}.zip"
checksum=26fcbb5925b74ad5fc8c26b0495dfc96353f4d553492eb97e85a8a6d2f43095b
post_install() {
# gmock is unable to detect the systems gtest, therefore delete the included
# version of gtest explicitly.
rm -r $DESTDIR/usr/lib/libgtest*.{so*,a} \
$DESTDIR/usr/share/aclocal/gtest.m4 \
$DESTDIR/usr/include/gtest
}
2014-05-21 21:57:54 +02:00
gmock-devel_package() {
conflicts="gtest-devel>=0"
depends="gmock>=${version}_${revision} gtest-devel"
2014-05-21 21:57:54 +02:00
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/share
}
}