Update package version to 2.0.0
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
name: rofi
|
name: rofi
|
||||||
description: A window switcher, application launcher and dmenu replacement
|
description: A window switcher, application launcher and dmenu replacement
|
||||||
version: 1.7.9.1
|
version: 2.0.0
|
||||||
url: https://github.com/DaveDavenport/rofi
|
url: https://github.com/DaveDavenport/rofi
|
||||||
license: MIT
|
license: MIT
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["librsvg","libxkbcommon","startup-notification","xcb-util-cursor","xcb-util-wm","xcb-util-xrm"]
|
depends: ["librsvg","libxkbcommon","startup-notification","wayland","xcb-util-cursor","xcb-util-wm","xcb-util-xrm"]
|
||||||
make_depends: ["check"]
|
make_depends: ["check","meson","wayland-protocols"]
|
||||||
|
replaces: ["rofi-wayland"]
|
||||||
type: source
|
type: source
|
||||||
|
|||||||
@@ -15,20 +15,28 @@ prepare() {
|
|||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
autoreconf -i
|
mkdir build
|
||||||
./configure --prefix=/usr --sysconfdir=/etc
|
cd build
|
||||||
make
|
|
||||||
|
meson setup --prefix=/usr
|
||||||
|
meson compile
|
||||||
}
|
}
|
||||||
|
|
||||||
# The check function is executed in the source directory
|
# The check function is executed in the source directory
|
||||||
# This function is used to run tests to verify the package has been compiled correctly
|
# This function is used to run tests to verify the package has been compiled correctly
|
||||||
check() {
|
check() {
|
||||||
make check
|
cd build
|
||||||
|
|
||||||
|
meson test
|
||||||
}
|
}
|
||||||
|
|
||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
make DESTDIR="$BPM_OUTPUT" install
|
cd build
|
||||||
install -Dm644 COPYING "$BPM_OUTPUT"/usr/share/licenses/rofi/COPYING
|
|
||||||
|
meson install --destdir="$BPM_OUTPUT"
|
||||||
|
|
||||||
|
# Install package license
|
||||||
|
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/rofi/COPYING
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user