31 lines
561 B
Python
31 lines
561 B
Python
import subprocess
|
|
|
|
from lib.make import *
|
|
|
|
version("1.11.2")
|
|
source_url("https://github.com/mesonbuild/meson/releases/download/1.11.2/meson-1.11.2.tar.gz")
|
|
|
|
builddep("python")
|
|
|
|
|
|
def build():
|
|
subprocess.run([
|
|
"python3",
|
|
"./packaging/create_zipapp.py",
|
|
"--outfile",
|
|
"meson",
|
|
"--interpreter",
|
|
"/bin/python3"
|
|
])
|
|
|
|
on_build(build)
|
|
|
|
def pack_meson(composer):
|
|
composer.makedir("bin")
|
|
composer.addfile("meson", "bin/meson")
|
|
|
|
package("meson")
|
|
dep("python @same-arch")
|
|
recommend("ninja")
|
|
on_pack(pack_meson)
|