aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/x.go
blob: e233099d083887a6ee29b2b4d49db1143cb69b97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
package rosa

import "hakurei.app/internal/pkg"

func (t Toolchain) newUtilMacros() (pkg.Artifact, string) {
	const (
		version  = "1.20.2"
		checksum = "Ze8QH3Z3emC0pWFP-0nUYeMy7aBW3L_dxBBmVgcumIHNzEKc1iGTR-yUFR3JcM1G"
	)
	return t.NewPackage("util-macros", version, newTar(
		"https://www.x.org/releases/individual/util/"+
			"util-macros-"+version+".tar.gz",
		checksum,
		pkg.TarGzip,
	), nil, (*MakeHelper)(nil)), version
}
func init() {
	artifactsM[utilMacros] = Metadata{
		f: Toolchain.newUtilMacros,

		Name:        "util-macros",
		Description: "X.Org Autotools macros",
		Website:     "https://xorg.freedesktop.org/",

		ID: 5252,
	}
}

func (t Toolchain) newXproto() (pkg.Artifact, string) {
	const (
		version  = "7.0.31"
		checksum = "Cm69urWY5RctKpR78eGzuwrjDEfXGkvHRdodj6sjypOGy5FF4-lmnUttVHYV1ydg"
	)
	return t.NewPackage("xproto", version, newTar(
		"https://www.x.org/releases/individual/proto/"+
			"xproto-"+version+".tar.bz2",
		checksum,
		pkg.TarBzip2,
	), nil, &MakeHelper{
		// ancient configure script
		Generate: "autoreconf -if",
	},
		Automake,
		PkgConfig,

		utilMacros,
	), version
}
func init() {
	artifactsM[Xproto] = Metadata{
		f: Toolchain.newXproto,

		Name:        "xproto",
		Description: "X Window System unified protocol definitions",
		Website:     "https://gitlab.freedesktop.org/xorg/proto/xorgproto",

		ID: 13650,
	}
}

func (t Toolchain) newLibXau() (pkg.Artifact, string) {
	const (
		version  = "1.0.12"
		checksum = "G9AjnU_C160q814MCdjFOVt_mQz_pIt4wf4GNOQmGJS3UuuyMw53sfPvJ7WOqwXN"
	)
	return t.NewPackage("libXau", version, newTar(
		"https://www.x.org/releases/individual/lib/"+
			"libXau-"+version+".tar.gz",
		checksum,
		pkg.TarGzip,
	), nil, &MakeHelper{
		// ancient configure script
		Generate: "autoreconf -if",
	},
		Automake,
		Libtool,
		PkgConfig,

		utilMacros,
		Xproto,
	), version
}
func init() {
	artifactsM[LibXau] = Metadata{
		f: Toolchain.newLibXau,

		Name:        "libXau",
		Description: "functions for handling Xauthority files and entries",
		Website:     "https://gitlab.freedesktop.org/xorg/lib/libxau",

		Dependencies: P{
			Xproto,
		},

		ID: 1765,
	}
}

func (t Toolchain) newLibpciaccess() (pkg.Artifact, string) {
	const (
		version  = "0.19"
		checksum = "84H0c_U_7fMqo81bpuwyXGXtk4XvvFH_YK00UiOriv3YGsuAhmbo2IkFhmJnvu2x"
	)
	return t.NewPackage("libpciaccess", version, newFromGitLab(
		"gitlab.freedesktop.org",
		"xorg/lib/libpciaccess",
		"libpciaccess-"+version,
		checksum,
	), nil, &MesonHelper{
		Setup: []KV{
			{"Dzlib", "enabled"},
		},
	}), version
}
func init() {
	artifactsM[Libpciaccess] = Metadata{
		f: Toolchain.newLibpciaccess,

		Name:        "libpciaccess",
		Description: "generic PCI access library",
		Website:     "https://gitlab.freedesktop.org/xorg/lib/libpciaccess",

		Dependencies: P{
			Zlib,
		},

		ID: 1703,
	}
}