internal/rosa: wayland-protocols artifact
All checks were successful
Test / Create distribution (push) Successful in 50s
Test / Sandbox (push) Successful in 2m33s
Test / Hakurei (push) Successful in 3m52s
Test / ShareFS (push) Successful in 3m57s
Test / Hpkg (push) Successful in 4m29s
Test / Sandbox (race detector) (push) Successful in 4m59s
Test / Hakurei (race detector) (push) Successful in 6m8s
Test / Flake checks (push) Successful in 1m45s
All checks were successful
Test / Create distribution (push) Successful in 50s
Test / Sandbox (push) Successful in 2m33s
Test / Hakurei (push) Successful in 3m52s
Test / ShareFS (push) Successful in 3m57s
Test / Hpkg (push) Successful in 4m29s
Test / Sandbox (race detector) (push) Successful in 4m59s
Test / Hakurei (race detector) (push) Successful in 6m8s
Test / Flake checks (push) Successful in 1m45s
Required by hakurei. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -198,6 +198,8 @@ func main() {
|
|||||||
p = rosa.Setuptools
|
p = rosa.Setuptools
|
||||||
case "wayland":
|
case "wayland":
|
||||||
p = rosa.Wayland
|
p = rosa.Wayland
|
||||||
|
case "wayland-protocols":
|
||||||
|
p = rosa.WaylandProtocols
|
||||||
case "zlib":
|
case "zlib":
|
||||||
p = rosa.Zlib
|
p = rosa.Zlib
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ const (
|
|||||||
Rsync
|
Rsync
|
||||||
Setuptools
|
Setuptools
|
||||||
Wayland
|
Wayland
|
||||||
|
WaylandProtocols
|
||||||
Zlib
|
Zlib
|
||||||
|
|
||||||
// _presetEnd is the total number of presets and does not denote a preset.
|
// _presetEnd is the total number of presets and does not denote a preset.
|
||||||
|
|||||||
@@ -37,3 +37,39 @@ meson install \
|
|||||||
)))
|
)))
|
||||||
}
|
}
|
||||||
func init() { artifactsF[Wayland] = Toolchain.newWayland }
|
func init() { artifactsF[Wayland] = Toolchain.newWayland }
|
||||||
|
|
||||||
|
func (t Toolchain) newWaylandProtocols() pkg.Artifact {
|
||||||
|
const (
|
||||||
|
version = "1.47"
|
||||||
|
checksum = "B_NodZ7AQfCstcx7kgbaVjpkYOzbAQq0a4NOk-SA8bQixAE20FY3p1-6gsbPgHn9"
|
||||||
|
)
|
||||||
|
return t.New("wayland-protocols-"+version, []pkg.Artifact{
|
||||||
|
t.Load(Python),
|
||||||
|
t.Load(Meson),
|
||||||
|
t.Load(PkgConfig),
|
||||||
|
t.Load(CMake),
|
||||||
|
t.Load(Ninja),
|
||||||
|
|
||||||
|
t.Load(Wayland),
|
||||||
|
t.Load(Libffi),
|
||||||
|
t.Load(Libexpat),
|
||||||
|
t.Load(Libxml2),
|
||||||
|
}, nil, nil, `
|
||||||
|
cd "$(mktemp -d)"
|
||||||
|
meson setup \
|
||||||
|
--reconfigure \
|
||||||
|
--buildtype=release \
|
||||||
|
--prefix=/system \
|
||||||
|
--prefer-static \
|
||||||
|
. /usr/src/wayland-protocols
|
||||||
|
meson compile
|
||||||
|
meson install \
|
||||||
|
--destdir=/work
|
||||||
|
`, pkg.Path(AbsUsrSrc.Append("wayland-protocols"), false, pkg.NewHTTPGetTar(
|
||||||
|
nil, "https://gitlab.freedesktop.org/wayland/wayland-protocols/"+
|
||||||
|
"-/archive/"+version+"/wayland-protocols-"+version+".tar.bz2",
|
||||||
|
mustDecode(checksum),
|
||||||
|
pkg.TarBzip2,
|
||||||
|
)))
|
||||||
|
}
|
||||||
|
func init() { artifactsF[WaylandProtocols] = Toolchain.newWaylandProtocols }
|
||||||
|
|||||||
Reference in New Issue
Block a user