1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/cpputest/APKBUILD
prspkt 4f917d4b38 community/cpputest: upgrade to 4.0
* Patch is now upstream, remove.
* Split static subpackage.
2020-07-04 14:55:40 +00:00

36 lines
992 B
Text

# Contributor: Shiva Velmurugan <shiv@shiv.me>
# Maintainer: Shiva Velmurugan <shiv@shiv.me>
pkgname=cpputest
pkgver=4.0
pkgrel=0
pkgdesc="A unit testing and mocking framework for C/C++"
url="http://cpputest.github.io/"
arch="all !mips !mips64" # FTBFS on soft-float (mips)
license="BSD-3-Clause"
options="!dbg"
makedepends="cmake"
subpackages="$pkgname-static"
source="https://github.com/cpputest/cpputest/releases/download/v$pkgver/cpputest-$pkgver.tar.gz"
build() {
cmake -B build . \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
make -C build
}
check() {
make -C build test
}
package() {
make -C build DESTDIR="$pkgdir" install
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"