Commit ec959db7 authored by Newbyte's avatar Newbyte 🌜 Committed by Andy Postnikov
Browse files

testing/abseil: new aport

parent 236dbd9b
Pipeline #78137 failed with stages
in 84 minutes and 39 seconds
# Contributor: Newbyte <newbie13xd@gmail.com>
# Maintainer: Newbyte <newbie13xd@gmail.com>
pkgname=abseil
pkgver=20210324.0
pkgrel=0
pkgdesc="Collection of C++ library code designed to augment the C++ standard library"
url="https://github.com/abseil/abseil-cpp"
arch="all !ppc64le" # Due to build issues with the PowerPC-specific code
license="Apache-2.0"
makedepends="cmake linux-headers"
subpackages="$pkgname-dev"
_googletest_rev=df7fee587d442b372ef43bd66c6a2f5c9af8c5eb
source="abseil-cpp-$pkgver.tar.gz::https://github.com/abseil/abseil-cpp/archive/$pkgver.tar.gz
googletest-$_googletest_rev.tar.gz::https://github.com/google/googletest/archive/$_googletest_rev.tar.gz
"
builddir="$srcdir/abseil-cpp-$pkgver"
build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=None \
-DBUILD_TESTING=ON \
-DABSL_LOCAL_GOOGLETEST_DIR:PATH=$srcdir/googletest-$_googletest_rev \
$CMAKE_CROSSOPTS .
cmake --build build
}
check() {
cd build
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
DESTDIR="$pkgdir" cmake --build build --target install
}
sha512sums="0817d6972047e0b2e7f9575fd558f0875ba3d14828609d6262149cbcef4b86f601595338e4ba597bd6fba28b77bea6f2993002377949bc6f506da0879f9f9c9d abseil-cpp-20210324.0.tar.gz
d27f2b63732579db03534e00d667cde99f7824ba73e06c6e3b0413a1513931537f392cc418c012a4d91ad33551d29074d3f757170d27a3c3d34807d6e071bb65 googletest-df7fee587d442b372ef43bd66c6a2f5c9af8c5eb.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment