[arch-commits] Commit in aws-sdk-cpp/trunk (PKGBUILD)

Anatol Pomozov anatolik at archlinux.org
Wed Jun 3 22:02:01 UTC 2020


    Date: Wednesday, June 3, 2020 @ 22:01:59
  Author: anatolik
Revision: 638602

upgpkg: aws-sdk-cpp 1.7.347-1

To reduce size of the package we build only small subset of the components
that are really used by other packages.

Modified:
  aws-sdk-cpp/trunk/PKGBUILD

----------+
 PKGBUILD |   13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-06-03 21:58:20 UTC (rev 638601)
+++ PKGBUILD	2020-06-03 22:01:59 UTC (rev 638602)
@@ -1,7 +1,7 @@
 # Maintainer: Anatol Pomozov
 
 pkgname=aws-sdk-cpp
-pkgver=1.7.306
+pkgver=1.7.347
 pkgrel=1
 pkgdesc='AWS SDK for C++'
 arch=(x86_64)
@@ -10,12 +10,19 @@
 depends=(openssl curl zlib libutil-linux aws-c-common aws-c-event-stream libpulse)
 makedepends=(cmake)
 source=(aws-sdk-cpp-$pkgver.zip::https://github.com/aws/aws-sdk-cpp/archive/$pkgver.zip)
-sha256sums=('4c876575d51bd759cc4713eb9e943278203f737672859b42c06963a0ea807cb5')
+sha256sums=('d1beacdb5f01b82b6353a2960c5eee24337eaf23970c8cc647c664f7cf324355')
 
+# AWS C++ SDK is a huge project. Install size of the whole project is ~500MiB. To reduce it
+# we build only a small subset of components used by other packages. Add more components to
+# this list if you need it.
+_components="core;ec2;kinesis;firehose;sts"
+# TOTHINK: it would be interesting to explore an idea of breaking sdk into set of small
+# per-component packages "aws-sdk-cpp-ec2, aws-sdk-cpp-kinesis, ...".
+
 build() {
   cd aws-sdk-cpp-$pkgver
 
-  cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCUSTOM_MEMORY_MANAGEMENT=OFF -DENABLE_TESTING=OFF -DBUILD_DEPS=OFF -S . -B build
+  cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCUSTOM_MEMORY_MANAGEMENT=OFF -DENABLE_TESTING=OFF -DBUILD_DEPS=OFF -DBUILD_ONLY="$_components" -S . -B build
   cmake --build build
 }
 



More information about the arch-commits mailing list