45 lines
1.0 KiB
Bash
45 lines
1.0 KiB
Bash
# Maintainer: Adrian Perez de Castro <aperez@igalia.com>
|
|
pkgname='wlroots-git'
|
|
pkgver=r1924.2e7d886
|
|
pkgrel=2
|
|
license=('custom:MIT')
|
|
pkgdesc='Modular Wayland compositor library'
|
|
url='https://github.com/swaywm/wlroots'
|
|
arch=('x86_64')
|
|
provides=('wlroots')
|
|
conflicts=('wlroots')
|
|
depends=('libcap' 'systemd' 'wayland' 'opengl-driver' 'libxcb'
|
|
'xcb-util-image' 'xcb-util-wm' 'pixman' 'libinput'
|
|
'libxkbcommon')
|
|
makedepends=('meson' 'ninja')
|
|
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 \
|
|
-Denable_xwayland=true \
|
|
-Denable_libcap=true \
|
|
-Denable_systemd=true \
|
|
-Denable_elogind=false
|
|
ninja -C build
|
|
}
|
|
|
|
package () {
|
|
cd "${pkgname}"
|
|
DESTDIR="${pkgdir}" ninja -C build install
|
|
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|