mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 08:21:49 +01:00 
			
		
		
		
	- remove static subpackage as needed to actually link to to run tests (otherwise you need to add both packages to use this), and since this is a test framework, no point for shared - add longlong/c++11 support
		
			
				
	
	
		
			39 lines
		
	
	
		
			961 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			961 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Contributor: Shiva Velmurugan <shiv@shiv.me>
 | |
| # Maintainer: Shiva Velmurugan <shiv@shiv.me>
 | |
| pkgname=cpputest
 | |
| pkgver=4.0
 | |
| pkgrel=1
 | |
| pkgdesc="A unit testing and mocking framework for C/C++"
 | |
| url="http://cpputest.github.io/"
 | |
| arch="all"
 | |
| license="BSD-3-Clause"
 | |
| makedepends="cmake samurai"
 | |
| source="https://github.com/cpputest/cpputest/releases/download/v$pkgver/cpputest-$pkgver.tar.gz"
 | |
| 
 | |
| build() {
 | |
| 	cmake -B build -G Ninja \
 | |
| 		-DCMAKE_BUILD_TYPE=None \
 | |
| 		-DCMAKE_INSTALL_PREFIX=/usr \
 | |
| 		-DCMAKE_INSTALL_LIBDIR=lib \
 | |
| 		-DC++11=ON \
 | |
| 		-DLONGLONG=ON
 | |
| 	cmake --build build
 | |
| }
 | |
| 
 | |
| check() {
 | |
| 	ninja -C build test
 | |
| }
 | |
| 
 | |
| package() {
 | |
| 	DESTDIR="$pkgdir" cmake --install build
 | |
| 
 | |
| 	mkdir -p "$pkgdir"/usr/lib/cmake
 | |
| 	mv "$pkgdir"/usr/lib/CppUTest/cmake \
 | |
| 		"$pkgdir"/usr/lib/cmake/CppUTest
 | |
| 	rmdir "$pkgdir"/usr/lib/CppUTest
 | |
| }
 | |
| 
 | |
| sha512sums="
 | |
| 69f39fffdcd965c871e598118db38ddb74a3e75fd7a7965f8d236029fa891f6fcb6b671147c166ad08482bbd0737537fafe90aa8439a0ab62389f19150cc39d7  cpputest-4.0.tar.gz
 | |
| "
 |