Update package version to 4.1.1

This commit is contained in:
2025-10-03 12:29:46 +03:00
parent 181f90af07
commit a4ef0a932a
2 changed files with 9 additions and 13 deletions
+7 -11
View File
@@ -5,25 +5,21 @@
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_BUILD_TYPE=Release -Wno-dev ..
make VERBOSE=1
cmake -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_BUILD_TYPE=Release -Wno-dev
cmake --build 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
make fish_run_tests
make test
}
# 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
make DESTDIR="$BPM_OUTPUT" install
install -Dm 644 ../doc_src/license.rst "$BPM_OUTPUT"/usr/share/licenses/fish/license.rst
DESTDIR="$BPM_OUTPUT" cmake --install build
# Install package license
install -Dm 644 "$BPM_SOURCE"/doc_src/license.rst "$BPM_OUTPUT"/usr/share/licenses/fish/license.rst
}