blob: 14d824c92740864dff4c827de19bb1fb9a8ea501 (
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
|
#!/bin/mkpkg
# description: High performance wlroots screen recording with hardware encoding
# url: https://github.com/russelltg/wl-screenrec
name=wl-screenrec
version=0.3.1
release=2
depends=(ffmpeg libdrm libva)
makedeps=(rust vulkan-headers pkgconf cargo-audit)
source=(https://github.com/russelltg/wl-screenrec/archive/refs/tags/v$version.tar.gz)
renames=($name-$version.tar.gz)
sha256sums=(
"b55564cea4af0e20a5d9a350381fe8d26bf6b2addabbc81d15cafeaa5a5ad1e6"
)
patch() {
export CARGO_HOME="$SRC/.cargo"
cd $name-$version
cargo vendor ../vendor
mkdir -p .cargo
printf '%s\n' \
'[source.crates-io]' \
'replace-with = "vendored-sources"' \
'' \
'[source."git+https://github.com/russelltg/rust-ffmpeg-sys?branch=vulkan"]' \
'git = "https://github.com/russelltg/rust-ffmpeg-sys"' \
'branch = "vulkan"' \
'replace-with = "vendored-sources"' \
'' \
'[source.vendored-sources]' \
'directory = "../vendor"' \
> .cargo/config.toml
#cargo audit
}
build() {
export CARGO_HTTP_CAINFO=/etc/ssl/cert.pem
export CARGO_PROFILE_RELEASE_LTO=off
export RUSTFLAGS="-C linker=clang -C link-arg=-fuse-ld=lld -C target-feature=-crt-static"
cd $name-$version
cargo build --release --offline
install -Dm755 target/release/$name $PKG/usr/bin/$name
}
signify() {
untrusted comment: public key
RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}
# vim: filetype=sh
|