diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-11-11 10:16:51 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-11-18 09:16:08 +0700 |
commit | 40d3b10c82614c6fcc96d2c3d0cb86cb031458d7 (patch) | |
tree | 51bf103764b16dafe3eb7e2b89b13db1ec323aa3 /development/aws-cdk | |
parent | a132e12ca2bf2a68914bdb0c90a4a6f332b26895 (diff) |
development/aws-cdk: Added (AWS Cloud Development Kit).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Diffstat (limited to 'development/aws-cdk')
-rw-r--r-- | development/aws-cdk/README | 6 | ||||
-rw-r--r-- | development/aws-cdk/aws-cdk.SlackBuild | 80 | ||||
-rw-r--r-- | development/aws-cdk/aws-cdk.info | 10 | ||||
-rw-r--r-- | development/aws-cdk/slack-desc | 19 |
4 files changed, 115 insertions, 0 deletions
diff --git a/development/aws-cdk/README b/development/aws-cdk/README new file mode 100644 index 0000000000000..3873f21bc4ddb --- /dev/null +++ b/development/aws-cdk/README @@ -0,0 +1,6 @@ +The AWS Cloud Development Kit (AWS CDK) is an open-source software +development framework to define cloud infrastructure in code and +provision it through AWS CloudFormation. + +NOTE: awscli is needed to perform authentication with AWS services +but not needed as build requirement. diff --git a/development/aws-cdk/aws-cdk.SlackBuild b/development/aws-cdk/aws-cdk.SlackBuild new file mode 100644 index 0000000000000..1e147394e0147 --- /dev/null +++ b/development/aws-cdk/aws-cdk.SlackBuild @@ -0,0 +1,80 @@ +#!/bin/bash + +# Slackware build script for aws-cdk + +# Copyright 2023 Willy Sudiarto Raharjo <willysr@slackbuilds.org> +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=aws-cdk +VERSION=${VERSION:-2.106.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "aarch64" ]; then + LIBDIRSUFFIX="64" +else + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP + +mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/node_modules/ +npm install -g --prefix $PKG/usr $CWD/$PRGNAM-$VERSION.tgz + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/development/aws-cdk/aws-cdk.info b/development/aws-cdk/aws-cdk.info new file mode 100644 index 0000000000000..ffc8aebcc864c --- /dev/null +++ b/development/aws-cdk/aws-cdk.info @@ -0,0 +1,10 @@ +PRGNAM="aws-cdk" +VERSION="2.106.0" +HOMEPAGE="https://github.com/aws/aws-cdk" +DOWNLOAD="https://registry.npmjs.org/aws-cdk/-/aws-cdk-2.106.0.tgz" +MD5SUM="cd352053030ba02f8adfb78253f21d81" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="nodejs awscli" +MAINTAINER="Willy Sudiarto Raharjo" +EMAIL="willysr@slackbuilds.org" diff --git a/development/aws-cdk/slack-desc b/development/aws-cdk/slack-desc new file mode 100644 index 0000000000000..388f910eb40e4 --- /dev/null +++ b/development/aws-cdk/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +aws-cdk: aws-cdk (AWS Cloud Development Kit) +aws-cdk: +aws-cdk: The AWS Cloud Development Kit (AWS CDK) is an open-source software +aws-cdk: development framework to define cloud infrastructure in code and +aws-cdk: provision it through AWS CloudFormation. +aws-cdk: +aws-cdk: +aws-cdk: Project URL: https://github.com/aws/aws-cdk +aws-cdk: +aws-cdk: +aws-cdk: |