diff options
author | mapk0y | 2023-06-30 15:37:01 +0900 |
---|---|---|
committer | mapk0y | 2023-06-30 15:37:01 +0900 |
commit | c7906028f30d72212782a5d947e78efa940043df (patch) | |
tree | 48ff4719d125eb3bca0e7c8a4b8023c747384f20 /PKGBUILD | |
parent | b8fbbeb6077d4f5a85a4b4bf22ad5afeec50f285 (diff) | |
download | aur-c7906028f30d72212782a5d947e78efa940043df.tar.gz |
Update to v3.0.0
- Update version
- Update description
- Add test script and Dockerfile
- Add Makefile as a task runner
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 27 |
1 files changed, 20 insertions, 7 deletions
@@ -1,18 +1,31 @@ # Maintainer: Kazuya Yokogawa <mapk0y at gmail.com> pkgname='cfn-guard' -pkgver=2.1.3 -pkgrel=2 -pkgdesc='A set of tools to check AWS CloudFormation templates for policy compliance using a simple, policy-as-code, declarative syntax' +pkgver=3.0.0 +pkgrel=1 +pkgdesc='Guard offers a policy-as-code domain-specific language (DSL) to write rules and validate JSON- and YAML-formatted data such as CloudFormation Templates, K8s configurations, and Terraform JSON plans/configurations against those rules.' url='https://github.com/aws-cloudformation/cloudformation-guard' license=('Apache') arch=('x86_64') depends=('gcc-libs') conflicts=("cfn-guard-git") -source=("${url}/releases/download/${pkgver}/${pkgname}-v2-ubuntu-latest.tar.gz") -sha256sums=('0b05f2e1695fcb7740cd74cf030bd56e32bd1fbcfc69cb92fb290b2475a97d61') +source=("${url}/releases/download/${pkgver}/${pkgname}-v3-ubuntu-latest.tar.gz") +sha256sums=('6aa93074ce470782c388ffbcf391981ea3c2f806c41e4dce1a63c9415f7e9c2b') + +build() { + ${srcdir}/cfn-guard-v3-ubuntu-latest/cfn-guard completions --shell='zsh' > _cfn-guard.zsh + ${srcdir}/cfn-guard-v3-ubuntu-latest/cfn-guard completions --shell='bash' > cfn-guard.bash + ${srcdir}/cfn-guard-v3-ubuntu-latest/cfn-guard completions --shell='fish' > cfn-guard.fish +} package() { - install -Dm755 ${srcdir}/cfn-guard-v2-ubuntu-latest/cfn-guard "$pkgdir/usr/bin/cfn-guard" - install -Dm644 ${srcdir}/cfn-guard-v2-ubuntu-latest/README.md "$pkgdir/usr/share/doc/${pkgname}/README.md" + install -Dm755 ${srcdir}/cfn-guard-v3-ubuntu-latest/cfn-guard "$pkgdir/usr/bin/cfn-guard" + install -Dm644 ${srcdir}/cfn-guard-v3-ubuntu-latest/README.md "$pkgdir/usr/share/doc/${pkgname}/README.md" + install -Dm644 ${srcdir}/cfn-guard.zsh "$pkgdir/usr/share/zsh/site-functions/_cfn-guard" + install -Dm644 ${srcdir}/cfn-guard.bash "$pkgdir/usr/share/bash-completion/completions/cfn-guard" + install -Dm644 ${srcdir}/cfn-guard.fish "$pkgdir/usr/share/fish/completions/cfn-guard.fish" +} + +check() { + ${srcdir}/cfn-guard-v3-ubuntu-latest/cfn-guard --version } |