summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1c7b2bc12c73032286555a5d2d2114bd611281df (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
# Maintainer: Miskolczi Richárd <miskolczi.richard@protonmail.com>
pkgname=hyprland-toggle-tiling-git
pkgver=2ea3ba0
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"
}