From 93055230fe387c0d7a032a81679efdba164ab215 Mon Sep 17 00:00:00 2001 From: Ella-0 <23418164+Ella-0@users.noreply.github.com> Date: Thu, 28 Jan 2021 13:21:25 +0000 Subject: [PATCH] added weston and libinput --- pkgs/libinput/build.sh | 34 +++++++++++++++++++++++++++ pkgs/weston/build.sh | 48 ++++++++++++++++++++++++++++++++++++++ pkgs/weston/no-tests.patch | 11 +++++++++ 3 files changed, 93 insertions(+) create mode 100644 pkgs/libinput/build.sh create mode 100644 pkgs/weston/build.sh create mode 100644 pkgs/weston/no-tests.patch diff --git a/pkgs/libinput/build.sh b/pkgs/libinput/build.sh new file mode 100644 index 0000000..0e1279d --- /dev/null +++ b/pkgs/libinput/build.sh @@ -0,0 +1,34 @@ +pkgname=libinput +pkgver=1.16.4 + +fetch() { + curl "https://www.freedesktop.org/software/libinput/libinput-1.16.4.tar.xz" -o $pkgname-$pkgver.tar.xz + tar -xf $pkgname-$pkgver.tar.xz + mkdir $pkgname-$pkgver/build +} + +build() { + cd $pkgname-$pkgver + cd build + meson .. \ + --buildtype=release \ + --prefix=/usr \ + --libexecdir=lib \ + -Dlibwacom=false \ + -Ddocumentation=false \ + -Ddebug-gui=false \ + -Dtests=false + samu +} + +package() { + cd $pkgname-$pkgver + cd build + DESTDIR=$pkgdir samu install +} + +license() { + cd $pkgname-$pkgver + cat LICENSE +# cat COPYING +} diff --git a/pkgs/weston/build.sh b/pkgs/weston/build.sh new file mode 100644 index 0000000..69994cb --- /dev/null +++ b/pkgs/weston/build.sh @@ -0,0 +1,48 @@ +pkgname=weston +pkgver=9.0.0 + +fetch() { + curl "https://wayland.freedesktop.org/releases/$pkgname-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz + tar -xf $pkgname-$pkgver.tar.xz + mkdir $pkgname-$pkgver/build + cd $pkgname-$pkgver + patch -p1 < ../../no-tests.patch +} + +build() { + cd $pkgname-$pkgver + cd build + meson .. \ + --buildtype=release \ + --prefix=/usr \ + --libexecdir=lib \ + -Dimage-jpeg=false \ + -Dimage-webp=false \ + -Dlauncher-logind=false \ + -Dweston-launch=false \ + -Dbackend-drm-screencast-vaapi=false \ + -Dbackend-rdp=false \ + -Dbackend-x11=false \ + -Dxwayland=false \ + -Dcolor-management-lcms=false \ + -Dcolor-management-colord=false \ + -Dsystemd=false \ + -Dremoting=false \ + -Dpipewire=false \ + -Ddemo-clients=false \ + -Dtests=false \ + -Dtest-gl-renderer=false + samu +} + +package() { + cd $pkgname-$pkgver + cd build + DESTDIR=$pkgdir samu install +} + +license() { + cd $pkgname-$pkgver + cat LICENSE +# cat COPYING +} diff --git a/pkgs/weston/no-tests.patch b/pkgs/weston/no-tests.patch new file mode 100644 index 0000000..914715f --- /dev/null +++ b/pkgs/weston/no-tests.patch @@ -0,0 +1,11 @@ +--- a/meson.build ++++ b/meson.build +@@ -163,7 +163,7 @@ + subdir('pipewire') + subdir('clients') + subdir('wcap') +-subdir('tests') ++#subdir('tests') + subdir('data') + subdir('man') +