forked from semios/ports
Compare commits
| Author | SHA256 | Date | |
|---|---|---|---|
|
|
94628eab4d |
@@ -16,7 +16,6 @@ _key_links = "links"
|
|||||||
_key_dependencies = "dependencies"
|
_key_dependencies = "dependencies"
|
||||||
_key_recommendations = "recommendations"
|
_key_recommendations = "recommendations"
|
||||||
_key_provides = "provides"
|
_key_provides = "provides"
|
||||||
_key_configure = "configure"
|
|
||||||
|
|
||||||
_current_pkgname: str = _key_global
|
_current_pkgname: str = _key_global
|
||||||
_pkginfo: dict[str, dict[str, typing.Any]] = {
|
_pkginfo: dict[str, dict[str, typing.Any]] = {
|
||||||
@@ -26,7 +25,6 @@ _pkginfo: dict[str, dict[str, typing.Any]] = {
|
|||||||
_key_maintainers: [],
|
_key_maintainers: [],
|
||||||
_key_provides: [],
|
_key_provides: [],
|
||||||
_key_recommendations: [],
|
_key_recommendations: [],
|
||||||
_key_configure: [],
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
_supported_arch: typing.Callable[[str], bool] = lambda x: True
|
_supported_arch: typing.Callable[[str], bool] = lambda x: True
|
||||||
@@ -89,12 +87,6 @@ def provide(s: str):
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
def configure_script(s: str):
|
|
||||||
_pkginfo[_current_pkgname][_key_configure] += [
|
|
||||||
os.path.realpath(s)
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
def _translate_dep_spec(s: str) -> str:
|
def _translate_dep_spec(s: str) -> str:
|
||||||
return (
|
return (
|
||||||
s.replace("(same)", "(same-version) @same-arch")
|
s.replace("(same)", "(same-version) @same-arch")
|
||||||
|
|||||||
@@ -25,15 +25,6 @@ class PkgComposer:
|
|||||||
json.dump(link, f)
|
json.dump(link, f)
|
||||||
f.write("\n")
|
f.write("\n")
|
||||||
|
|
||||||
def add_configure(self, path: str, name: str = None):
|
|
||||||
if name is None:
|
|
||||||
name = os.path.basename(path)
|
|
||||||
configuredir = self.workdir + "/configure/"
|
|
||||||
dstpath = configuredir + name
|
|
||||||
os.makedirs(configuredir, exist_ok=True)
|
|
||||||
shutil.copy2(path, dstpath)
|
|
||||||
os.chmod(dstpath, 0o755)
|
|
||||||
|
|
||||||
def compose(self):
|
def compose(self):
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
[
|
[
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
[ "${ACTION}" = "remove" ] && exit 0
|
|
||||||
command -v certutil >/dev/null 2>&1 || exit 0
|
|
||||||
|
|
||||||
certutil refresh
|
|
||||||
@@ -27,6 +27,4 @@ def pack(composer):
|
|||||||
|
|
||||||
package("ca-certificates")
|
package("ca-certificates")
|
||||||
arch_any()
|
arch_any()
|
||||||
configure_script("configure/refresh")
|
|
||||||
recommend("certutil")
|
|
||||||
on_pack(pack)
|
on_pack(pack)
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ from lib import rust
|
|||||||
from lib.make import *
|
from lib.make import *
|
||||||
|
|
||||||
|
|
||||||
version("0.1.0-alpha.2")
|
version("0.1.0-alpha.4")
|
||||||
description("Linux device userspace daemon.")
|
description("Linux device userspace daemon.")
|
||||||
maintainer("sisungo <[email protected]>")
|
maintainer("sisungo <[email protected]>")
|
||||||
source_url("https://gitea.semilabs.org/semios/lxdeviced/archive/0.1.0-alpha.2.tar.gz")
|
source_url("https://gitea.semilabs.org/semios/lxdeviced/archive/0.1.0-alpha.4.tar.gz")
|
||||||
|
|
||||||
builddep("shortcut/rust")
|
builddep("shortcut/rust")
|
||||||
|
|
||||||
|
|||||||
@@ -123,9 +123,6 @@ def cmd_build_package(package: str):
|
|||||||
}
|
}
|
||||||
composer.write_manifest(manifest)
|
composer.write_manifest(manifest)
|
||||||
composer.write_links(pkginfo[lib.make._key_links])
|
composer.write_links(pkginfo[lib.make._key_links])
|
||||||
for i in pkginfo[lib.make._key_configure]:
|
|
||||||
composer.add_configure(i)
|
|
||||||
|
|
||||||
composer.compose()
|
composer.compose()
|
||||||
|
|
||||||
# Build success
|
# Build success
|
||||||
|
|||||||
Reference in New Issue
Block a user