34 lines
958 B
Bash
34 lines
958 B
Bash
# Template build file for 'gmock'
|
|
pkgname=gmock
|
|
version=1.7.0
|
|
revision=6
|
|
build_style=gnu-configure
|
|
short_desc="Google C++ Mocking Framework"
|
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
|
license="BSD"
|
|
hostmakedepends="unzip"
|
|
makedepends="gtest-devel"
|
|
depends="gtest"
|
|
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
|
|
}
|
|
|
|
gmock-devel_package() {
|
|
conflicts="gtest-devel>=0"
|
|
depends="gmock>=${version}_${revision} gtest-devel"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share
|
|
}
|
|
}
|