summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ef600944df8b258494f8d2437b4565ce773c54a8 (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: lmartinez-mirror
# Contributor: Caltlgin Stsodaat <contact@fossdaily.xyz>
# Contributor: Simon Legner <Simon.Legner@gmail.com>
pkgname=spectre-meltdown-checker-git
_pkgname=${pkgname%-git}
pkgver=0.44.r7.g3a486e9
pkgrel=1
pkgdesc='Spectre, Meltdown, Foreshadow, Fallout, RIDL, ZombieLoad vulnerability/mitigation checker'
arch=('any')
url='https://github.com/speed47/spectre-meltdown-checker'
license=('GPL3')
makedepends=('git')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+${url}.git")
sha256sums=('SKIP')

pkgver() {
  git -C "${_pkgname}" describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  install -Dm755 "${_pkgname}/${_pkgname}.sh" "${pkgdir}/usr/bin/${_pkgname}"
  install -Dm644 -t "${pkgdir}/usr/share/doc/${_pkgname}" "${_pkgname}/README.md"
}

# vim: ts=2 sw=2 et: