32 lines
992 B
Python
Executable File
32 lines
992 B
Python
Executable File
#!/usr/bin/env modbuild
|
|
|
|
# upstream INSTALL.md: meson setup build && meson compile && meson install.
|
|
# default pbuild::prep downloads + sha-verifies + unpacks the tarball (urls/shasums
|
|
# in files/config.yaml, strip_dirs:1 puts the sources at $SRC_DIR root).
|
|
# need to install the latest meson > 0.60 at local/bin
|
|
# could be pip3 install --user meson
|
|
# cd lines can be deleted with compile_in_sourcetree being true
|
|
pbuild::configure() {
|
|
<<<<<<< HEAD
|
|
=======
|
|
cd "${SRC_DIR}"
|
|
>>>>>>> fc35801 (use local meson, need to pip install meson > 0.60 at home folder)
|
|
~/.local/bin/meson setup build --prefix="${PREFIX}"
|
|
}
|
|
|
|
pbuild::compile() {
|
|
<<<<<<< HEAD
|
|
=======
|
|
cd "${SRC_DIR}"
|
|
>>>>>>> fc35801 (use local meson, need to pip install meson > 0.60 at home folder)
|
|
~/.local/bin/meson compile -C build
|
|
}
|
|
|
|
pbuild::install() {
|
|
<<<<<<< HEAD
|
|
=======
|
|
cd "${SRC_DIR}"
|
|
>>>>>>> fc35801 (use local meson, need to pip install meson > 0.60 at home folder)
|
|
~/.local/bin/meson install -C build
|
|
}
|