wgpu-native
LOW
maintainer damian101
0 votes
scanned 2026-09-22 17:38:46.328100
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: Damian Höster <damian.hoester@posteo.de>
2
3
pkgname=wgpu-native
4
pkgver=29.0.1.1
5
pkgrel=1
6
pkgdesc='Native WebGPU implementation based on wgpu-core'
7
arch=(
8
x86_64
9
aarch64
10
)
11
url=https://github.com/gfx-rs/wgpu-native
12
license=(
13
MIT
14
Apache-2.0
15
)
16
depends=(
17
gcc-libs
18
glibc
19
vulkan-icd-loader
20
vulkan-driver
21
)
22
makedepends=(
23
cargo
24
clang
25
)
26
provides=(
27
libwgpu_native.so
28
webgpu-headers
29
)
30
conflicts=(
31
webgpu-headers
32
webgpu-headers-git
33
)
34
options=(staticlibs)
35
_headers_commit=673658bc2bd70ec39fc55ebe6bb0173cf6d0a603
36
source=(
37
$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz
38
webgpu-headers-$_headers_commit.tar.gz::https://github.com/webgpu-native/webgpu-headers/archive/$_headers_commit.tar.gz
39
)
40
sha256sums=(
41
6008651e1d10022d4ded15b69405b4ba88577be5d623938ba98ad241b2cbf818
42
6754c6c2465c79a954f7c04c7890c9f00b7ecce8addbe01b5056e860ba3933e6
43
)
44
45
prepare() {
46
cd $pkgname-$pkgver
47
rm -rf ffi/webgpu-headers
48
cp -r "$srcdir"/webgpu-headers-$_headers_commit ffi/webgpu-headers
49
50
export RUSTUP_TOOLCHAIN=stable
51
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
52
}
53
54
build() {
55
cd $pkgname-$pkgver
56
export RUSTUP_TOOLCHAIN=stable
57
export CARGO_TARGET_DIR=target
58
export WGPU_NATIVE_VERSION=v$pkgver
59
cargo build --release --frozen
60
}
61
62
check() {
63
cd $pkgname-$pkgver
64
export RUSTUP_TOOLCHAIN=stable
65
cargo test --frozen
66
}
67
68
package() {
69
cd $pkgname-$pkgver
70
71
install -Dm755 target/release/libwgpu_native.so -t "$pkgdir/usr/lib"
72
install -Dm644 target/release/libwgpu_native.a -t "$pkgdir/usr/lib"
73
74
install -Dm644 ffi/webgpu-headers/webgpu.h -t "$pkgdir/usr/include/webgpu"
75
install -Dm644 ffi/wgpu.h -t "$pkgdir/usr/include/webgpu"
76
77
install -dm755 "$pkgdir"/usr/lib/pkgconfig
78
cat >"$pkgdir"/usr/lib/pkgconfig/$pkgname.pc <<EOF
79
prefix=/usr
80
exec_prefix=\${prefix}
81
libdir=\${exec_prefix}/lib
82
includedir=\${prefix}/include
83
84
Name: $pkgname
85
Description: $pkgdesc
86
Version: $pkgver
87
Libs: -L\${libdir} -lwgpu_native
88
Cflags: -I\${includedir} -I\${includedir}/webgpu
89
EOF
90
91
ln -s $pkgname.pc "$pkgdir"/usr/lib/pkgconfig/wgpu_native.pc
92
ln -s $pkgname.pc "$pkgdir"/usr/lib/pkgconfig/wgpu.pc
93
94
install -Dm644 README.md -t "$pkgdir"/usr/share/doc/$pkgname
95
install -Dm644 LICENSE.MIT "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.MIT
96
install -Dm644 LICENSE.APACHE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.APACHE
97
}
98
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-22 17:38:46 | Low | 1 |