blob: 9bc672f28d9c8af04c1a8d3782b78e8f7cd9c46b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Maintainer: Jonathan Wright <jon@than.io>
_pkg=tflint
pkgname=${_pkg}-bin
pkgver=0.53.0
pkgrel=1
pkgdesc="A linter for Terraform code"
arch=('x86_64')
url="https://github.com/terraform-linters/${_pkg}"
license=('MPL-2.0' 'BUSL-1.1')
depends=('glibc')
makedepends=('zip')
conflicts=("${_pkg}")
provides=("${_pkg}")
source=(
"LICENSE-MPL-2.0"
"LICENSE-BUSL-1.1"
"tflint_linux_amd64-${pkgver}.zip::${url}/releases/download/v${pkgver}/tflint_linux_amd64.zip"
)
sha512sums=('c1e3a0c8f5267fb5c0b65733bda037c62d914ed989bee0f510d8196b1029eec00d40f415ce1514a4996d420ba02d856d04db0915b64573ef4a36033cc5efb94e'
'de6495df79045a8e609771286ef2f3d0dd1908e4d8f61de5816b3e490114c76c49f0b5acf653541f283117a396f2d8e0dc5419f09e5d94aeac50c9a6d5f21fa2'
'ec3285a7f71a9f7e8fe7bce837052edb5be0188f17627768c3b481e8985e3d6ee62bafcd98b67716c2b84636066ded6511a1cbc8b0423021dcbe7bc8faad4bb9')
package() {
cd ${srcdir} || exit
install -Dm755 ${_pkg} ${pkgdir}/usr/bin/${_pkg}
install -Dm644 LICENSE-MPL-2.0 ${pkgdir}/usr/share/licenses/$pkgname/LICENSE-MPL-2.0
install -Dm644 LICENSE-BUSL-1.1 ${pkgdir}/usr/share/licenses/$pkgname/LICENSE-BUSL-1.1
}
|