Add check-version.sh script and update source.sh script
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Ignore this package
|
||||
echo "ignore"
|
||||
@@ -15,25 +15,20 @@ 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 --libdir=/usr/lib --buildtype=release -Dssh_agent=false -Dgtk_doc=false ..
|
||||
ninja
|
||||
meson setup --prefix=/usr --libdir=/usr/lib --buildtype=release -Dssh_agent=false -Dgtk_doc=false 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
|
||||
dbus-run-session 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 -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/gcr/COPYING
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user