Update package version to 2.0.0
This commit is contained in:
@@ -15,20 +15,28 @@ prepare() {
|
||||
# The build function is executed in the source directory
|
||||
# This function is used to compile the source code
|
||||
build() {
|
||||
autoreconf -i
|
||||
./configure --prefix=/usr --sysconfdir=/etc
|
||||
make
|
||||
mkdir build
|
||||
cd build
|
||||
|
||||
meson setup --prefix=/usr
|
||||
meson compile
|
||||
}
|
||||
|
||||
# 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() {
|
||||
make check
|
||||
cd build
|
||||
|
||||
meson test
|
||||
}
|
||||
|
||||
# The package function is executed in the source directory
|
||||
# This function is used to move the compiled files into the output directory
|
||||
package() {
|
||||
make DESTDIR="$BPM_OUTPUT" install
|
||||
install -Dm644 COPYING "$BPM_OUTPUT"/usr/share/licenses/rofi/COPYING
|
||||
cd build
|
||||
|
||||
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