blob: bb98b26f394d739a4addc0ec8bc0c7fcd4f3ee4c (
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
61
62
63
64
65
|
# Maintainer: Zaman Huseynli <zamanhuseynli23@gmail.com>
pkgname=hyprdm-rob
pkgver=1.0
pkgrel=1
pkgdesc="Hyprland Display Manager HyprDM Rust Overlay Backend version only"
arch=('x86_64')
conflicts=('hyprdm-rob')
url="https://codeberg.org/Zamanhuseyinli/hyprdm"
license=('BSD3')
depends=(
'hyprland'
'wayland'
'pam'
'gtk3'
'qt5-base'
'qt5-declarative'
'qt5-wayland'
'qt5-graphicaleffects'
'libxkbcommon'
)
makedepends=(
'git'
'rust'
'cargo'
'pkgconf'
'cmake'
'make'
'vulkan-headers'
)
provides=('hyprdm')
conflicts=('hyprdm')
source=("git+https://codeberg.org/Zamanhuseyinli/hyprdm")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/hyprdm"
git describe --tags --abbrev=0 | sed 's/^v//; s/-/./g'
}
build() {
cd "$srcdir/hyprdm/gui-api"
# Rust modu ile HDM_API derleme
echo ">>> Building hdm_api in Rust mode..."
export HDM_API_LIB_TYPE=rust
cargo build --release
}
package() {
cd "$srcdir/hyprdm/gui-api"
# Rust modu libhdm_api kopyalama
if [ -f "target/release/libhdm_api.so" ]; then
install -Dm755 "target/release/libhdm_api.so" "$pkgdir/usr/lib/libhdm_api.so"
fi
if [ -f "target/release/libhdm_api.a" ]; then
install -Dm644 "target/release/libhdm_api.a" "$pkgdir/usr/lib/libhdm_api.a"
fi
# Config Manager -> hyprdmconfigmanager
if [ -f "../configmanager/target/release/hyprdmconfigmanager" ]; then
install -Dm755 "../configmanager/target/release/hyprdmconfigmanager" "$pkgdir/usr/bin/hyprdmconfigmanager"
fi
}
|