nevaforget 8d056eac0f
All checks were successful
Build and publish packages / build-and-publish (push) Successful in 16m7s
fix(pkg): declare gtk4 build deps for GTK rust apps
moongreet/moonlock/moonset link against gtk4 headers at build time.
The CI workflow runs `makepkg -sfd` and only installs makedepends
explicitly — with gtk4 listed only in depends, the build container
had no cairo.pc / gtk4.pc and cairo-sys-rs failed to find the
system library. Add gtk4, gtk4-layer-shell, pkgconf (plus
gtk-session-lock + pam for moonlock) to makedepends.

This previously only worked because repeated `makepkg -s` runs
left the libs installed in the act_runner container filesystem.
Recreating the runner today exposed the latent gap.
2026-04-21 10:03:22 +02:00

46 lines
964 B
Bash

# ABOUTME: PKGBUILD for Moonset — Wayland session power menu.
# ABOUTME: Builds from git source with automatic version detection.
# Maintainer: Dominik Kressler
pkgname=moonset-git
pkgver=0.8.2.r0.gd030f13
pkgrel=2
pkgdesc="A Wayland session power menu with GTK4 and Layer Shell"
arch=('x86_64')
url="https://gitea.moonarch.de/nevaforget/moonset"
license=('MIT')
depends=(
'gtk4'
'gtk4-layer-shell'
)
makedepends=(
'git'
'cargo'
'gtk4'
'gtk4-layer-shell'
'pkgconf'
)
provides=('moonset')
conflicts=('moonset')
source=("git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/moonset"
git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./'
}
build() {
cd "$srcdir/moonset"
cargo build --release
}
package() {
cd "$srcdir/moonset"
install -Dm755 target/release/moonset "$pkgdir/usr/bin/moonset"
# Example config
install -Dm644 config/moonset.toml "$pkgdir/etc/moonset/moonset.toml.example"
}