blob: ebcfbe663a1bd32ae8412040106fd8fc4b7ae3e2 (
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
55
56
57
58
59
60
|
# Maintainer: loooph <loooph@gmx.de>
pkgname=memtest_vulkan-git
pkgver=v0.5.0
pkgrel=1
pkgdesc="Vulkan compute tool for testing video memory stability"
arch=('x86_64' 'aarch64')
url="https://github.com/GpuZelenograd/memtest_vulkan"
license=('Zlib')
depends=(
'glibc'
'gcc-libs'
'vulkan-driver'
)
makedepends=(
'git'
'cargo'
)
_basename=${pkgname%-git}
provides=("$_basename")
conflicts=("$_basename")
source=("git+${url}")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_basename"
git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
export RUSTUP_TOOLCHAIN=stable
cd "$srcdir/$_basename"
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cd "$srcdir/$_basename"
cargo build --frozen --release --bin "$_basename"
}
check() {
export RUSTUP_TOOLCHAIN=stable
cd "$srcdir/$_basename"
cargo test --frozen --all-features --workspace
}
package() {
cd "$srcdir/$_basename"
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$_basename"
# memtest_vulkan will run in verbose mode if "verbose" is in the binary name
ln -s "/usr/bin/$_basename" "$pkgdir/usr/bin/${_basename}_verbose"
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" "LICENSE"
}
|