From cbf39a4ece6a10606869718bbda2a1999ec48b88 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sat, 6 Sep 2025 21:01:04 +0300 Subject: [PATCH] Update package version to 2.0.0 --- pkg.info | 7 ++++--- source.sh | 20 ++++++++++++++------ 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/pkg.info b/pkg.info index 9b03328..ee76891 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,10 @@ name: rofi description: A window switcher, application launcher and dmenu replacement -version: 1.7.9.1 +version: 2.0.0 url: https://github.com/DaveDavenport/rofi license: MIT architecture: any -depends: ["librsvg","libxkbcommon","startup-notification","xcb-util-cursor","xcb-util-wm","xcb-util-xrm"] -make_depends: ["check"] +depends: ["librsvg","libxkbcommon","startup-notification","wayland","xcb-util-cursor","xcb-util-wm","xcb-util-xrm"] +make_depends: ["check","meson","wayland-protocols"] +replaces: ["rofi-wayland"] type: source diff --git a/source.sh b/source.sh index 2f5873b..f1c4e79 100644 --- a/source.sh +++ b/source.sh @@ -15,20 +15,28 @@ prepare() { # The build function is executed in the source directory # This function is used to compile the source code build() { - autoreconf -i - ./configure --prefix=/usr --sysconfdir=/etc - make + mkdir build + cd build + + meson setup --prefix=/usr + meson compile } # The check function is executed in the source directory # This function is used to run tests to verify the package has been compiled correctly check() { - make check + cd build + + meson test } # The package function is executed in the source directory # This function is used to move the compiled files into the output directory package() { - make DESTDIR="$BPM_OUTPUT" install - install -Dm644 COPYING "$BPM_OUTPUT"/usr/share/licenses/rofi/COPYING + cd build + + meson install --destdir="$BPM_OUTPUT" + + # Install package license + install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/rofi/COPYING }