2021-01-28 23:03:30 +00:00
|
|
|
pkgname=wlroots
|
2021-12-26 12:40:14 +00:00
|
|
|
pkgver=0.15.0
|
2021-01-28 23:03:30 +00:00
|
|
|
|
|
|
|
fetch() {
|
2021-12-26 12:40:14 +00:00
|
|
|
curl -L "https://gitlab.freedesktop.org/wlroots/wlroots/-/archive/$pkgver/wlroots-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz
|
2021-01-28 23:03:30 +00:00
|
|
|
tar -xf $pkgname-$pkgver.tar.xz
|
|
|
|
mkdir $pkgname-$pkgver/build
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cd build
|
|
|
|
meson .. \
|
|
|
|
--buildtype=release \
|
|
|
|
--prefix=/usr \
|
2021-06-20 11:28:52 +00:00
|
|
|
--libexecdir=lib \
|
2021-12-26 12:40:14 +00:00
|
|
|
-Dxcb-errors=disabled \
|
|
|
|
-Dxwayland=disabled \
|
|
|
|
-Dexamples=false \
|
|
|
|
-Drenderers="['gles2', 'vulkan']" \
|
|
|
|
-Dbackends="['drm', 'libinput']"
|
2021-01-28 23:03:30 +00:00
|
|
|
samu
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cd build
|
|
|
|
DESTDIR=$pkgdir samu install
|
|
|
|
}
|
|
|
|
|
2021-12-26 12:40:14 +00:00
|
|
|
backup() {
|
|
|
|
return
|
2021-01-28 23:03:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
license() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cat LICENSE
|
|
|
|
# cat COPYING
|
|
|
|
}
|