aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 379a7d9668308c637c5a26f1081e99acc031abe1 (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: Alex Indigo <ai at aegis dot one>
# Contributor: Alex Indigo <ai at aegis dot one>

pkgname=qt6-niriqml
_projname=niriqml
pkgver=0.2.0
pkgrel=1
pkgdesc="Typed QML bindings for niri IPC (windows, workspaces, events, actions)"
arch=('x86_64' 'aarch64')
url="https://github.com/alexindigo/niriqml"
license=('GPL-3.0-or-later')
depends=('qt6-base' 'qt6-declarative')
makedepends=('cmake')
optdepends=('niri: the compositor niriqml is designed to talk to')
conflicts=("qt6-niriqml-git")
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('59079deeeed8dc245e35ee91846f0f7b32e005cc6ff716a1b05ed68de64e0b4f')

build() {
    cmake -B build -S "${srcdir}/${_projname}-${pkgver}" \
        -DCMAKE_BUILD_TYPE=Release \
        -DBUILD_TEST_MODE=OFF \
        -DCMAKE_SKIP_RPATH=ON \
        -DCMAKE_INSTALL_PREFIX=/usr
    cmake --build build
}

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