Update package version to 0.9.0

This commit is contained in:
2026-05-02 18:24:42 +03:00
parent 92f63161f4
commit 0597735656
3 changed files with 17 additions and 48 deletions
+3 -22
View File
@@ -9,45 +9,26 @@ prepare() {
# Add enit support
patch -Np1 -i "$BPM_WORKDIR"/enit-support.patch
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
cargo fetch --locked --target "$(rustc --print host-tuple)"
}
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
# Libadwaita
cargo build --release --locked --frozen --features=adw
mv target/release/lact target/release/lact-libadwaita
# GTK4
cargo build --release --locked --frozen
}
# 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() {
cargo test --release --frozen --all --all-features --verbose
cargo test --frozen --workspace --verbose
}
# The package function is executed in the source directory
# This function is used to move the compiled files into the output directory
package_lact() {
package() {
make PREFIX=/usr DESTDIR="$BPM_OUTPUT" install
install -Dm755 target/release/lact "$BPM_OUTPUT"/usr/bin/lact
# Remove systemd service
rm -r "$BPM_OUTPUT"/usr/lib
# Install esvm service
install -Dm644 "$BPM_WORKDIR"/lactd.esv "$BPM_OUTPUT"/etc/esvm/services/lactd.esv
# Install package license
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/lact/LICENSE
}
package_lact-libadwaita() {
make PREFIX=/usr DESTDIR="$BPM_OUTPUT" install
install -Dm755 target/release/lact-libadwaita "$BPM_OUTPUT"/usr/bin/lact
# Remove systemd service
rm -r "$BPM_OUTPUT"/usr/lib