Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <[email protected]>
23 lines
621 B
Go
23 lines
621 B
Go
// Package binary converts Arch Linux binary packages (.pkg.tar.zst) into
|
|
// Zeta packages.
|
|
package binary
|
|
|
|
import (
|
|
"git.spectoria.dev/huntedbytheirs/zeta-reconstruct/internal/registry"
|
|
)
|
|
|
|
// frontend implements registry.Frontend for Arch binary packages.
|
|
type frontend struct{}
|
|
|
|
func (frontend) Name() string { return "arch-binary" }
|
|
|
|
// Convert converts an Arch .pkg.tar.zst into a Zeta binary package
|
|
// (payload tarball + archive-mode package.lua) under opts.Output.
|
|
func (frontend) Convert(input string, opts registry.Options) error {
|
|
return Convert(input, opts)
|
|
}
|
|
|
|
func init() {
|
|
registry.Register(frontend{})
|
|
}
|