Files
hyprland-toggle-tiling/PKGBUILD
2025-06-19 13:28:59 +02:00

30 lines
837 B
Bash

# Maintainer: Miskolczi Richárd <miskolczi.richard@protonmail.com>
pkgname=hyprland-toggle-tiling-git
pkgver=latest
pkgrel=1
pkgdesc="A simple program to toggle tiling and floating modes for windows in the Hyprland Wayland compositor."
arch=('x86_64')
url="https://github.com/TypoMustakes/hyprland-toggle-tiling"
source=("git+https://github.com/TypoMustakes/hyprland-toggle-tiling.git")
license=('GPL3')
depends=('hyprland')
makedepends=('cmake' 'git')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/hyprland-toggle-tiling"
git rev-parse --short HEAD
}
build() {
cd "$srcdir/hyprland-toggle-tiling"
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
}
package() {
cd "$srcdir/hyprland-toggle-tiling"
install -Dm755 build/htt "$pkgdir/usr/bin/htt"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}