All checks were successful
Test / Create distribution (push) Successful in 1m1s
Test / Sandbox (push) Successful in 2m34s
Test / Hakurei (push) Successful in 4m1s
Test / ShareFS (push) Successful in 4m0s
Test / Hpkg (push) Successful in 4m31s
Test / Sandbox (race detector) (push) Successful in 5m9s
Test / Hakurei (race detector) (push) Successful in 5m58s
Test / Flake checks (push) Successful in 2m0s
This is used by quite a few projects. Signed-off-by: Ophestra <cat@gensokyo.uk>
58 lines
1.4 KiB
Go
58 lines
1.4 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.NewViaMeson("wayland", version, pkg.NewHTTPGetTar(
|
|
nil, "https://gitlab.freedesktop.org/wayland/wayland/"+
|
|
"-/archive/"+version+"/wayland-"+version+".tar.bz2",
|
|
mustDecode(checksum),
|
|
pkg.TarBzip2,
|
|
), &MesonAttr{
|
|
Writable: true,
|
|
ScriptEarly: `
|
|
cd /usr/src/wayland
|
|
chmod +w tests tests/sanity-test.c
|
|
echo 'int main(){}' > tests/sanity-test.c
|
|
`,
|
|
Configure: [][2]string{
|
|
{"Ddefault_library", "both"},
|
|
{"Ddocumentation", "false"},
|
|
{"Dtests", "true"},
|
|
},
|
|
},
|
|
t.Load(Gawk),
|
|
t.Load(Diffutils),
|
|
|
|
t.Load(Libffi),
|
|
t.Load(Libexpat),
|
|
t.Load(Libxml2),
|
|
)
|
|
}
|
|
func init() { artifactsF[Wayland] = Toolchain.newWayland }
|
|
|
|
func (t Toolchain) newWaylandProtocols() pkg.Artifact {
|
|
const (
|
|
version = "1.47"
|
|
checksum = "B_NodZ7AQfCstcx7kgbaVjpkYOzbAQq0a4NOk-SA8bQixAE20FY3p1-6gsbPgHn9"
|
|
)
|
|
return t.NewViaMeson("wayland-protocols", version, pkg.NewHTTPGetTar(
|
|
nil, "https://gitlab.freedesktop.org/wayland/wayland-protocols/"+
|
|
"-/archive/"+version+"/wayland-protocols-"+version+".tar.bz2",
|
|
mustDecode(checksum),
|
|
pkg.TarBzip2,
|
|
), &MesonAttr{
|
|
SkipCheck: true,
|
|
},
|
|
t.Load(Wayland),
|
|
t.Load(Libffi),
|
|
t.Load(Libexpat),
|
|
t.Load(Libxml2),
|
|
)
|
|
}
|
|
func init() { artifactsF[WaylandProtocols] = Toolchain.newWaylandProtocols }
|