File PKGBUILD of Package qwlroots
# Maintainer: rewine <lhongxu@outlook.com>
pkgname=qwlroots
pkgver=0.1.0
pkgrel=1
pkgdesc="Qt and QML bindings for wlroots"
arch=('x86_64' 'aarch64')
url="https://github.com/vioken/qwlroots"
license=('GPL')
depends=(
'wlroots>=0.18.0'
'qt6-base'
'pixman'
)
makedepends=(
'cmake'
'ninja'
'pkg-config'
'wayland-protocols'
'wlr-protocols'
)
optdepends=()
provides=('libqwlroots.so')
options=('debug')
source=("${pkgname}-${pkgver}.tar.gz")
md5sums=('SKIP')
build() {
cd "$pkgname-$pkgver"
cmake . -GNinja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DPREFER_QT_5=OFF
ninja
}
package() {
cd "$pkgname-$pkgver"
DESTDIR="$pkgdir/" ninja install
}