blob: 52ed65914a0e786ddc352a1eb9c711bef329c558 (
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
|
# Maintainer: William Gathoye <william at gathoye dot be>
# Contributor: N/A
pkgname=ridl
pkgver="r39.508d549"
pkgrel=1
pkgdesc="A tool to check whether your system is affected by Micro-architectural Data Sampling and other attacks"
arch=('i686' 'x86_64')
url="https://github.com/vusec/ridl"
license=('MPL2')
makedepends=('cmake')
source=(
"git+https://github.com/vusec/ridl"
)
sha512sums=(
'SKIP'
)
prepare() {
cd "${pkgname}"
git submodule init
git submodule update
}
# Support repositories that start without a tag but get tagged later on (uses
# a bashism):
# src.: https://wiki.archlinux.org/index.php/VCS_package_guidelines#Git
pkgver() {
cd "${pkgname}"
(
set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd "${pkgname}"
mkdir build
cd build
cmake ..
make
}
package() {
cd "${pkgname}/build"
install -Dm755 mdstool-cli "${pkgdir}/usr/bin/mdstool-cli"
}
|