50 lines
1.2 KiB
Bash
50 lines
1.2 KiB
Bash
# Maintainer: Adrian Perez de Castro <aperez@igalia.com>
|
|
pkgname=wlroots-git
|
|
pkgver=0.9.1.r7.g6d3f3b93
|
|
pkgrel=1
|
|
license=(custom:MIT)
|
|
pkgdesc='Modular Wayland compositor library'
|
|
url=https://github.com/swaywm/wlroots
|
|
arch=(x86_64)
|
|
provides=("wlroots=${pkgver%%.r*}")
|
|
conflicts=(wlroots)
|
|
options=('debug' '!strip')
|
|
depends=(libcap systemd wayland opengl-driver libxcb xcb-util-errors
|
|
xcb-util-wm pixman libinput libxkbcommon)
|
|
makedepends=(meson ninja git wayland-protocols xorgproto)
|
|
source=("${pkgname}::git+${url}")
|
|
sha512sums=('SKIP')
|
|
|
|
|
|
pkgver () {
|
|
cd "${pkgname}"
|
|
(
|
|
set -o pipefail
|
|
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
)
|
|
}
|
|
|
|
build () {
|
|
cd "${pkgname}"
|
|
rm -rf build
|
|
meson build \
|
|
--prefix /usr \
|
|
--buildtype debug \
|
|
-Dlibcap=enabled \
|
|
-Dlogind=enabled \
|
|
-Dlogind-provider=systemd \
|
|
-Dxcb-errors=enabled \
|
|
-Dxcb-icccm=enabled \
|
|
-Dxwayland=enabled \
|
|
-Dx11-backend=enabled \
|
|
-Dexamples=true
|
|
ninja -C build
|
|
}
|
|
|
|
package () {
|
|
cd "${pkgname}"
|
|
DESTDIR="${pkgdir}" ninja -C build install
|
|
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|