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

Anatol Pomozov anatolik at archlinux.org
Thu Feb 25 06:08:24 UTC 2021


    Date: Thursday, February 25, 2021 @ 06:08:23
  Author: anatolik
Revision: 872983

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 872982, aws-sdk-cpp/trunk/PKGBUILD)

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

Copied: aws-sdk-cpp/repos/community-testing-x86_64/PKGBUILD (from rev 872982, aws-sdk-cpp/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2021-02-25 06:08:23 UTC (rev 872983)
@@ -0,0 +1,34 @@
+# Maintainer: Anatol Pomozov
+
+pkgname=aws-sdk-cpp
+pkgver=1.8.149
+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=('da9bee0d5cddce39876e4cddcdb8e027114e92fdc2d05131d1918189cf1efaa2')
+
+# 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