Files
FWS-DeskManger/PKGBUILD
T
BlackAngelTV 9251a4738e
version / print-version (push) Successful in 16s
build: document where the recipe must be run
2026-11-20 08:56:05 +01:00

32 lines
1023 B
Bash

# Maintainer: FWS
# The version file is the single source of truth for releases, so the package
# version follows it instead of being duplicated here.
#
# Run makepkg from a scratch directory that holds this PKGBUILD, the version file
# and the source tarball: makepkg creates src/ and pkg/ next to it, and a src/
# beside these sources would hide the real ones.
pkgname=fws-deskmanager
pkgver=$(tr -d '[:space:]' < version)
pkgrel=1
pkgdesc="Switch desktop environments on Arch Linux without rebooting"
arch=('x86_64')
url="https://gitea.nocode-var.tech/FWS/FWS-DeskManger"
license=('unknown')
depends=('gtk4' 'systemd' 'polkit')
makedepends=('cmake' 'pkgconf')
# Release packages only: the debug split package has no use for end users.
options=('!debug')
source=("$pkgname-$pkgver.tar.gz")
sha256sums=('SKIP')
build() {
cmake -S "$pkgname-$pkgver" -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build build -j"$(nproc)"
}
package() {
DESTDIR="$pkgdir" cmake --install build
}