summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranatolik <anatolik@9fca08f4-af9d-4005-b8df-a31f2cc04f65>2019-11-24 19:22:24 +0000
committeranatolik <anatolik@9fca08f4-af9d-4005-b8df-a31f2cc04f65>2019-11-24 19:22:24 +0000
commit9de0a74acec00fa382d082a149c88aee35ed96f1 (patch)
treeda253f411ced0c6d3e85c396312bbfe3a069e9fb
parent0fbe71263a1a9228e252bd214942869d9507fa44 (diff)
archrelease: copy trunk to community-x86_64
git-svn-id: file:///srv/repos/svn-community/svn@533090 9fca08f4-af9d-4005-b8df-a31f2cc04f65
-rw-r--r--aws-c-common/repos/community-x86_64/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/aws-c-common/repos/community-x86_64/PKGBUILD b/aws-c-common/repos/community-x86_64/PKGBUILD
new file mode 100644
index 00000000000..5a9f10d150e
--- /dev/null
+++ b/aws-c-common/repos/community-x86_64/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Anatol Pomozov
+
+pkgname=aws-c-common
+pkgver=0.4.22
+pkgrel=1
+pkgdesc='Core c99 package for AWS SDK for C. Includes cross-platform primitives, configuration, data structures, and error handling.'
+arch=(x86_64)
+url='https://github.com/awslabs/aws-c-common'
+license=(Apache)
+depends=(cmake)
+source=(aws-c-common-$pkgver.zip::https://github.com/awslabs/aws-c-common/archive/v$pkgver.zip)
+sha256sums=('39f99419e2aa0fcb59872067f9e9e04fbd5f6bbdf9ee8041874ff89d24f152ca')
+
+build() {
+ cd aws-c-common-$pkgver
+
+ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=ON -S . -B build
+ cmake --build build
+}
+
+check() {
+ cd aws-c-common-$pkgver
+ cmake --build build --target test
+}
+
+package() {
+ cd aws-c-common-$pkgver
+
+ cmake --build build --target install -- DESTDIR="$pkgdir/"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}