summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9f33fc6d0ba154a82e698f9a22764d1c7e5e9fcd (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
# Maintainer: ju6ge <judge@felixrichter.tech>

pkgname=hy3-git
_pkgname=hy3
pkgver=r209.65a849b
pkgrel=3
pkgdesc='Hyprland plugin for i3 like tiling'
arch=('x86_64')
url='https://github.com/outfoxxed/hy3'
license=('GPL3')
makedepends=('git')
depends=('gcc-libs' 'glibc' 'hyprland')
makedepends=('cmake' 'git')
source=("git+$url")
sha256sums=('SKIP')
conflicts=("hy3")

pkgver() {
    cd "$_pkgname"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

build() {
    cmake -B build -S "$_pkgname" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX='/usr'
    cmake --build build
}

package() {
    DESTDIR="$pkgdir" cmake --install build
}