wgpu-native

LOW
maintainer damian101 0 votes scanned 2026-09-22 17:38:46.328100
View on AUR
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
3pkgname=wgpu-native
4pkgver=29.0.1.1
5pkgrel=1
6pkgdesc='Native WebGPU implementation based on wgpu-core'
7arch=(
8 x86_64
9 aarch64
10)
11url=https://github.com/gfx-rs/wgpu-native
12license=(
13 MIT
14 Apache-2.0
15)
16depends=(
17 gcc-libs
18 glibc
19 vulkan-icd-loader
20 vulkan-driver
21)
22makedepends=(
23 cargo
24 clang
25)
26provides=(
27 libwgpu_native.so
28 webgpu-headers
29)
30conflicts=(
31 webgpu-headers
32 webgpu-headers-git
33)
34options=(staticlibs)
35_headers_commit=673658bc2bd70ec39fc55ebe6bb0173cf6d0a603
36source=(
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)
40sha256sums=(
41 6008651e1d10022d4ded15b69405b4ba88577be5d623938ba98ad241b2cbf818
42 6754c6c2465c79a954f7c04c7890c9f00b7ecce8addbe01b5056e860ba3933e6
43)
44
45prepare() {
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
54build() {
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
62check() {
63 cd $pkgname-$pkgver
64 export RUSTUP_TOOLCHAIN=stable
65 cargo test --frozen
66}
67
68package() {
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
79prefix=/usr
80exec_prefix=\${prefix}
81libdir=\${exec_prefix}/lib
82includedir=\${prefix}/include
83
84Name: $pkgname
85Description: $pkgdesc
86Version: $pkgver
87Libs: -L\${libdir} -lwgpu_native
88Cflags: -I\${includedir} -I\${includedir}/webgpu
89EOF
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)SeverityRules
2026-09-22 17:38:46 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion