mirror of https://github.com/built-aur/packages
addpkg: aws-cdk
This commit is contained in:
parent
885a85643a
commit
a0d4b6f114
|
@ -0,0 +1,26 @@
|
||||||
|
# Maintainer: MedzikUser <nivua1fn@duck.com>
|
||||||
|
pkgname='aws-cdk'
|
||||||
|
pkgver="2.25.0"
|
||||||
|
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}")
|
||||||
|
sha256sums=('SKIP')
|
||||||
|
|
||||||
|
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}"
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
NPM="aws-cdk"
|
Loading…
Reference in New Issue