forked from semios/semios-packages
Compare commits
6
Commits
cmake
...
argp-standalone
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
087129a0ca | ||
|
|
65a884ddd4 | ||
|
|
8c41ed811f | ||
|
|
e421add41d | ||
|
|
1b2f8a2295 | ||
|
|
02cf225a7e |
@@ -46,6 +46,8 @@ def builddep(s: str):
|
||||
_builddep += ["cargo", "rustc"]
|
||||
elif s == "shortcut/cmake":
|
||||
_builddep += ["cmake", "ninja"]
|
||||
elif s == "shortcut/meson":
|
||||
_builddep += ["meson", "ninja"]
|
||||
else:
|
||||
_builddep += [s]
|
||||
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
import os
|
||||
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
version("1.1.0")
|
||||
source_url("https://github.com/tom42/argp-standalone/archive/refs/tags/v1.1.0.tar.gz")
|
||||
|
||||
srcdir = None
|
||||
|
||||
|
||||
def build():
|
||||
global srcdir
|
||||
srcdir = os.getcwd()
|
||||
cpp.cmake()
|
||||
cpp.ninja()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack(composer):
|
||||
composer.makedir("lib")
|
||||
composer.addfile("src/libargp-standalone.a", "lib/libargp.a")
|
||||
composer.makedir("include")
|
||||
composer.addfile(f"{srcdir}/include/argp-standalone/argp.h", "include/argp.h")
|
||||
|
||||
package("libargp-dev")
|
||||
dep("semi-libc @same-arch")
|
||||
on_pack(pack)
|
||||
@@ -0,0 +1,30 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user