-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathPKGBUILD
More file actions
52 lines (49 loc) · 1.42 KB
/
Copy pathPKGBUILD
File metadata and controls
52 lines (49 loc) · 1.42 KB
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
# Maintainer: munenick <https://github.com/MuNeNICK>
pkgname=hypr-rdp
pkgver=0.1.2
pkgrel=1
pkgdesc="Native RDP server for Hyprland"
arch=('x86_64')
url="https://github.com/MuNeNICK/hypr-rdp"
license=('MIT')
options=(!debug)
depends=(
'ffmpeg'
'libpulse'
'libva'
'libxkbcommon'
'mesa'
'pipewire'
'wayland'
)
makedepends=(
'cargo'
'clang'
'cmake'
)
optdepends=(
'intel-media-driver: VA-API hardware encoding for Intel GPUs'
'libva-mesa-driver: VA-API hardware encoding for AMD GPUs'
)
source=("$pkgname-$pkgver.tar.gz::https://github.com/MuNeNICK/hypr-rdp/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('851ab2f4e0e6ad8883364617c9ea8bfb9c51e002dcecac9ec98031759e98ea13')
prepare() {
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
# Keep Rust/C build scripts isolated from makepkg hardening flags.
unset CFLAGS CXXFLAGS LDFLAGS
cargo build --frozen --release
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 "target/release/hypr-rdp" "$pkgdir/usr/bin/hypr-rdp"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
install -Dm644 CHANGELOG.md "$pkgdir/usr/share/doc/$pkgname/CHANGELOG.md"
}