new blfs: dev-cpp/abseil-cpp-20250814.0
This commit is contained in:
36
dev-cpp/abseil-cpp-20250814.0.PKGBUILD
Normal file
36
dev-cpp/abseil-cpp-20250814.0.PKGBUILD
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
pkgname=abseil-cpp
|
||||||
|
pkgver=20250814.0
|
||||||
|
pkgdesc="Collection of C++ library code designed to augment the C++ standard library"
|
||||||
|
arch=('x86_64')
|
||||||
|
homepage='https://abseil.io'
|
||||||
|
license=('Apache-2.0')
|
||||||
|
depends=('gcc-libs' 'glibc')
|
||||||
|
makedepends=('cmake')
|
||||||
|
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||||
|
urls=("https://github.com/abseil/abseil-cpp/archive/${pkgver}.tar.gz")
|
||||||
|
md5sums=("016feacd6a6b3b9a47ab844e61f4f7bd")
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||||
|
}
|
||||||
|
|
||||||
|
src_build() {
|
||||||
|
local cmake_args=(
|
||||||
|
-D CMAKE_CXX_STANDARD=17
|
||||||
|
-D CMAKE_INSTALL_PREFIX=/usr
|
||||||
|
-D CMAKE_BUILD_TYPE=Release
|
||||||
|
-D BUILD_SHARED_LIBS=ON
|
||||||
|
-D ABSL_ENABLE_INSTALL="yes"
|
||||||
|
-D ABSL_USE_EXTERNAL_GOOGLETEST="yes"
|
||||||
|
-D ABSL_BUILD_TEST_HELPERS=OFF
|
||||||
|
-D ABSL_BUILD_TESTING=OFF
|
||||||
|
)
|
||||||
|
cmake -B build "${cmake_args[@]}"
|
||||||
|
cmake --build build
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
DESTDIR="$pkgdir" cmake --install build
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:ft=sh syn=sh et sw=2:
|
||||||
Reference in New Issue
Block a user