summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c4a05cab38e10e4228c48648d1e4b0abae122c4a (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
# Maintainer:  Vitalii Kuzhdin <vitaliikuzhdin@gmail.com>

_pkgname="certigo"
pkgname="${_pkgname}-bin"
pkgver=1.16.0
pkgrel=1
pkgdesc="A utility to examine and validate certificates in a variety of formats"
arch=('x86_64')
url="https://github.com/square/${_pkgname}"
license=('Apache-2.0')
depends=('glibc')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
_pkgsrc="${_pkgname}-${pkgver}"
source=("README-${pkgver}.md::${url}/raw/v${pkgver}/README.md"
        "LICENSE-${pkgver}::${url}/raw/v${pkgver}/LICENSE")
source_x86_64=("${_pkgsrc}-x86_64::${url}/releases/download/v${pkgver}/${_pkgname}-linux-amd64")
sha256sums=('2da0fd0ed400bb17da58ab4e8887daad1feece1fd81dbdd6ad8a0567844d139d'
            'cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30')
sha256sums_x86_64=('6d84c3801b216b26504d9bb1356f8b7a2d5b6aa8a2df281af0c011dc9a8307ab')

package() {
  cd "${srcdir}"
  install -Dm755 "${_pkgsrc}-${CARCH}" "${pkgdir}/usr/bin/${_pkgname}"
  install -Dm644 "README-${pkgver}.md" "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
  install -Dm644 "LICENSE-${pkgver}"   "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}