Update source.sh script and raise revision number
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
name: waybar
|
||||
description: Highly customizable Wayland bar for Sway and Wlroots based compositors
|
||||
version: 0.14.0
|
||||
revision: 2
|
||||
url: https://github.com/Alexays/Waybar
|
||||
license: MIT
|
||||
architecture: any
|
||||
|
||||
@@ -17,9 +17,6 @@ prepare() {
|
||||
# The build function is executed in the source directory
|
||||
# This function is used to compile the source code
|
||||
build() {
|
||||
mkdir build
|
||||
cd build
|
||||
|
||||
meson setup --prefix=/usr \
|
||||
--buildtype=plain \
|
||||
--auto-features=enabled \
|
||||
@@ -30,21 +27,21 @@ build() {
|
||||
-Dcava=disabled \
|
||||
-Dtests=enabled \
|
||||
-Dmpris=disabled \
|
||||
-Dgps=disabled ..
|
||||
ninja
|
||||
-Dgps=disabled build
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
# 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() {
|
||||
cd build
|
||||
ninja test
|
||||
meson test -C build --print-errorlogs
|
||||
}
|
||||
|
||||
# The package function is executed in the source directory
|
||||
# This function is used to move the compiled files into the output directory
|
||||
package() {
|
||||
cd build
|
||||
DESTDIR="$BPM_OUTPUT" ninja install
|
||||
meson install -C build --destdir="$BPM_OUTPUT"
|
||||
|
||||
# Install package license
|
||||
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/waybar/LICENSE
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user