[arch-commits] Commit in aws-sdk-cpp/repos (2 files)

Anatol Pomozov anatolik at archlinux.org
Mon Jan 25 18:09:13 UTC 2021


    Date: Monday, January 25, 2021 @ 18:09:13
  Author: anatolik
Revision: 829716

archrelease: copy trunk to community-testing-x86_64

Added:
  aws-sdk-cpp/repos/community-testing-x86_64/
  aws-sdk-cpp/repos/community-testing-x86_64/PKGBUILD
    (from rev 829715, aws-sdk-cpp/trunk/PKGBUILD)

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Copied: aws-sdk-cpp/repos/community-testing-x86_64/PKGBUILD (from rev 829715, aws-sdk-cpp/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2021-01-25 18:09:13 UTC (rev 829716)
@@ -0,0 +1,34 @@
+# Maintainer: Anatol Pomozov
+
+pkgname=aws-sdk-cpp
+pkgver=1.8.129
+pkgrel=1
+pkgdesc='AWS SDK for C++'
+arch=(x86_64)
+url='https://github.com/aws/aws-sdk-cpp'
+license=(Apache)
+depends=(openssl curl zlib util-linux-libs 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=('ac57e83a5a0ae93a3fe784a91a0658e46e484b3a49567d3a3ab4b3fb335df4af')
+
+# 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;s3"
+# 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 -DBUILD_ONLY="$_components" -S . -B build
+  cmake --build build
+}
+
+package() {
+  cd aws-sdk-cpp-$pkgver
+
+  cmake --build build --target install -- DESTDIR="$pkgdir"
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list