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>
76 lines
1.8 KiB
Go
76 lines
1.8 KiB
Go
package rosa
|
|
|
|
import "hakurei.app/internal/pkg"
|
|
|
|
func (t Toolchain) newWayland() pkg.Artifact {
|
|
const (
|
|
version = "1.24.0"
|
|
checksum = "JxgLiFRRGw2D3uhVw8ZeDbs3V7K_d4z_ypDog2LBqiA_5y2vVbUAk5NT6D5ozm0m"
|
|
)
|
|
return t.New("wayland-"+version, []pkg.Artifact{
|
|
t.Load(Python),
|
|
t.Load(Meson),
|
|
t.Load(PkgConfig),
|
|
t.Load(CMake),
|
|
t.Load(Ninja),
|
|
|
|
t.Load(Libffi),
|
|
t.Load(Libexpat),
|
|
t.Load(Libxml2),
|
|
}, nil, nil, `
|
|
cd "$(mktemp -d)"
|
|
meson setup \
|
|
--reconfigure \
|
|
--buildtype=release \
|
|
--prefix=/system \
|
|
--prefer-static \
|
|
-Ddocumentation=false \
|
|
. /usr/src/wayland
|
|
meson compile
|
|
meson install \
|
|
--destdir=/work
|
|
`, pkg.Path(AbsUsrSrc.Append("wayland"), false, pkg.NewHTTPGetTar(
|
|
nil, "https://gitlab.freedesktop.org/wayland/wayland/"+
|
|
"-/archive/"+version+"/wayland-"+version+".tar.bz2",
|
|
mustDecode(checksum),
|
|
pkg.TarBzip2,
|
|
)))
|
|
}
|
|
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 }
|