2022-05-22 16:16:48 +00:00
|
|
|
# Maintainer: MedzikUser <nivua1fn@duck.com>
|
|
|
|
pkgname='aws-cdk'
|
2023-06-02 06:17:52 +00:00
|
|
|
pkgver="2.82.0"
|
2022-05-22 16:16:48 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc='CDK Toolkit, the command line tool for CDK app'
|
|
|
|
arch=('any')
|
|
|
|
url="https://github.com/awslabs/aws-cdk"
|
|
|
|
license=('Apache')
|
|
|
|
depends=('nodejs')
|
|
|
|
makedepends=('npm')
|
|
|
|
_file="${pkgname}-${pkgver}.tgz"
|
|
|
|
source=("https://registry.npmjs.org/${pkgname}/-/${_file}")
|
|
|
|
noextract=("${_file}")
|
2023-06-02 06:17:52 +00:00
|
|
|
sha256sums=('3351ba707089cb0b0f6547f92b174e99a12bb891dbf532baf8d3bfd64ff2c6ce')
|
2022-05-22 16:16:48 +00:00
|
|
|
|
|
|
|
package() {
|
|
|
|
npm install -g --prefix "${pkgdir}/usr" "${_file}"
|
|
|
|
|
|
|
|
# Non-deterministic race in npm gives 777 permissions to random directories.
|
|
|
|
# See https://github.com/npm/npm/issues/9359 for details.
|
|
|
|
chmod -R u=rwX,go=rX "${pkgdir}"
|
|
|
|
|
|
|
|
# npm installs package.json owned by build user
|
|
|
|
# https://bugs.archlinux.org/task/63396
|
|
|
|
chown -R root:root "${pkgdir}"
|
|
|
|
}
|