summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2a8a7c43f46ce946fc0814753fabcf69662ee0f4 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Maintainer: Michael Clayfield <asdf me asdf michaelclafield asdf com asdf>
# Contributor: Oscar Garcia Amor <ogarcia@connectical.com>

pkgname=('vault-bin')
pkgdesc='A tool for managing secrets. Official Hashicorp binaries.'
pkgver=1.18.0
pkgrel=1
url='https://vaultproject.io/'
license=('BSL')
provides=('vault')
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
source=('vault.tmpfiles'
        'vault.sysusers'
        'vault.service'
        'vault.hcl'
        'LICENSE')
source_i686=("https://releases.hashicorp.com/vault/${pkgver}/vault_${pkgver}_linux_386.zip")
source_x86_64=("https://releases.hashicorp.com/vault/${pkgver}/vault_${pkgver}_linux_amd64.zip")
source_armv7h=("https://releases.hashicorp.com/vault/${pkgver}/vault_${pkgver}_linux_arm.zip")
source_aarch64=("https://releases.hashicorp.com/vault/${pkgver}/vault_${pkgver}_linux_arm64.zip")
sha256sums=('3e9307683e7288abdcdd378b13da7b744f9084c28283407872bb0b9b8e59755c'
            '9920d0e69aa4093e372410b8418b3386177c168cc0c10e1b37a01a9a1b615411'
            '37c71ce2096a5e6a900853f7fceff6468c9566917463724b57ff714b7873f9bb'
            '5568fb49aed3ca41f4829d21030afdfed5d071babc055d16b63a77851339e0a0'
            '4d53d3b0c3cdafe021b67bfe5915aa80800e22ff2d6a700774d09603bd8e1905')
sha256sums_i686=('f3516a2f025d9358e5693318f33675e085ced55cfaa157f9efa377c23750871e')
sha256sums_x86_64=('a9d6b0891f8561db673b638c2d6bdbe9cbdabaecf5bcd8fe6ce09bb73f1fd7a2')
sha256sums_armv7h=('44d65ccb8d8ae36a46565cc611e14be7b1fc2ab5374bcc988a0bd575bd5c5b68')
sha256sums_aarch64=('7bcb6eec3f7a3dd398687f1cf15897ec20b7eae6335f0c85453d591b3c05fb6e')
sha512sums=('aa56041c53434195dbf544ce9bf18d7bfb530bf65c9b692163621185b0a46035273a4eeda6454ceb93201117f23662e44ac9c88eda3cf12153cdce40df0fde09'
            '92616ccf83fa5ca9f8b0d022cf8ceb1f3549e12b66bf21d9f77f3eb26bd75ec1dc36c155948ec987c642067b85fbfc30a9217d6c503d952a402aa5ef63e50928'
            'f4f045f95502fc8b01cb34f71aed4c484ffa78a410f8d76e6607d42fd85ffb9c92092df226c8b61e25a2f13744eb9bed6d4871e1686d80160922432f361e22e4'
            'df8e8f450a4cdf2b597b45ae8416dce82fbea372e022745e15b8913f4e293d3aaec9a6dad6a86dbe1a5a183f4df7a5e4fbb0dddd48379e6e3b9d5215262f6bc2'
            '9daa65d207fcedd4d87eb06bbb5af3d8959b5341f54321e3e1209544ccc57f38c5082dfdb6613298c77d31c55e5a04f2f2003412258c013f8a677a0049505d3b')
sha512sums_i686=('7fbdfbf491633195f6de7faa7b99f46805c9fb4c0e64fb6459a9f2295fac41b341535b3bf487486803e7b87fa9a68698d504dc66173b2350bfb956923a3b7045')
sha512sums_x86_64=('eb6cde8ef0510bfdfe4609fbde25ba6a6cf1487c0d07998e67b8440d6d7ee652870ac234bdd07689b900f3ba7a6c47c510bc283b36de7fc37e5ca52e1e0685cd')
sha512sums_armv7h=('ce32bc3bd00eeb02ec42a141fbe14cfa2cf8dea8b22c0aa1993d666165851a5536f8fe150f4bb463a1b23abbeca85ef1fa2e283e3c677b4a82cb4cbfc7a7ba70')
sha512sums_aarch64=('988b40f62b29f956966d82577ec76b5703f6907a110eac8d6bb6643d18234a74ecc27351bf13763c204ed9d66236c40505e2c2d07c5c56de66598cce0a6f756d')

package () {
  pkgdesc='A tool for managing secrets'
  conflicts=('vault')
  backup=('etc/vault.hcl')

  install -Dm755 vault "${pkgdir}/usr/bin/vault"
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -Dm644 "${srcdir}/vault.hcl" "${pkgdir}/etc/vault.hcl"
  install -Dm644 "${srcdir}/vault.service" \
    "${pkgdir}/usr/lib/systemd/system/vault.service"
  install -Dm644 "${srcdir}/vault.sysusers" \
    "${pkgdir}/usr/lib/sysusers.d/vault.conf"
  install -Dm644 "${srcdir}/vault.tmpfiles" \
    "${pkgdir}/usr/lib/tmpfiles.d/vault.conf"
}