From 7a050627303ace4de59a08036fa27afa7e37f6a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 27 Oct 2022 18:59:12 +0700 Subject: [PATCH] prometheus-cpp: use create_wrksrc --- srcpkgs/prometheus-cpp/template | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/srcpkgs/prometheus-cpp/template b/srcpkgs/prometheus-cpp/template index cf7cae7d3bf..3012d53ef47 100644 --- a/srcpkgs/prometheus-cpp/template +++ b/srcpkgs/prometheus-cpp/template @@ -5,6 +5,7 @@ revision=1 _hash_client_model=fa8ad6fec33561be4280a8f0514318c79d7f6cb6 _hash_googletest=ec44c6c1675c25b9827aacd08c02433cccde7780 _hash_civetweb=fbdee7440be24f904208c15a1fc9e2582b866049 +create_wrksrc=yes build_style=cmake hostmakedepends="telegraf protobuf" makedepends="protobuf-devel libatomic-devel" @@ -21,10 +22,14 @@ checksum="d5ea6dffca5185fb30b9b643343f2ab1d6113672d7aec3e75e0cfa757f50ea25 175a22300b3450e27e5f2e6f95cc9abca74617cbc21a1e0ed19bdfbd22ea0305 d29d75de6645bd67452df27cda2e4a09848161f9ecacc62b1c1818d0a701cff9" +post_extract() { + mv prometheus-cpp-$version/* . + mv civetweb-${_hash_civetweb}/* 3rdparty/civetweb + mv googletest-${_hash_googletest}/* 3rdparty/googletest + mv client_model-${_hash_client_model}/* 3rdparty/prometheus_client_model +} + pre_configure() { - mv ../civetweb-${_hash_civetweb}/* ./3rdparty/civetweb - mv ../googletest-${_hash_googletest}/* ./3rdparty/googletest - mv ../client_model-${_hash_client_model}/* ./3rdparty/prometheus_client_model case "${XBPS_TARGET_MACHINE}" in armv[56]*) sed -i lib/CMakeLists.txt \ -e "/target_link_libraries/s;); atomic);"