aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/libarchive.go
blob: d79f1282cb19b3af724fdc02979149e7f7f474fd (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
package rosa

import "hakurei.app/internal/pkg"

func (t Toolchain) newLibarchive() (pkg.Artifact, string) {
	const (
		version  = "3.8.7"
		checksum = "CUJK4MDQmZmATClgQBH2Wt-7Ts4iiSUlg1J_TVb6-5IK3rVUgVLIMc5k-bnWB9w3"
	)
	return t.NewPackage("libarchive", version, newFromGitHub(
		"libarchive/libarchive",
		"v"+version, checksum,
	), &PackageAttr{
		Paths: []pkg.ExecPath{
			pkg.Path(AbsUsrSrc.Append(
				"CTestCustom.cmake",
			), false, pkg.NewFile("CTestCustom.cmake", []byte(`
list(APPEND CTEST_CUSTOM_TESTS_IGNORE
	"libarchive_test_archive_string_conversion_fail_c"
	"libarchive_test_archive_string_conversion_fail_latin1"
	"libarchive_test_archive_string_update_utf8_koi8"
	"libarchive_test_gnutar_filename_encoding_KOI8R_UTF8"
	"libarchive_test_gnutar_filename_encoding_KOI8R_CP866"
	"libarchive_test_gnutar_filename_encoding_CP1251_UTF8"
	"libarchive_test_gnutar_filename_encoding_Russian_Russia"
	"libarchive_test_gnutar_filename_encoding_EUCJP_UTF8"
	"libarchive_test_gnutar_filename_encoding_EUCJP_CP932"
	"libarchive_test_gnutar_filename_encoding_CP932_UTF8"
	"libarchive_test_pax_filename_encoding_KOI8R"
	"libarchive_test_pax_filename_encoding_CP1251"
	"libarchive_test_pax_filename_encoding_EUCJP"
	"libarchive_test_pax_filename_encoding_CP932"
	"libarchive_test_read_format_cpio_filename_UTF8_eucJP"
	"libarchive_test_read_format_cpio_filename_CP866_KOI8R"
	"libarchive_test_read_format_cpio_filename_KOI8R_CP866"
	"libarchive_test_read_format_cpio_filename_UTF8_KOI8R"
	"libarchive_test_read_format_cpio_filename_UTF8_CP866"
	"libarchive_test_read_format_cpio_filename_eucJP_CP932"
	"libarchive_test_read_format_cpio_filename_UTF8_CP932"
	"libarchive_test_read_format_cpio_filename_CP866_CP1251"
	"libarchive_test_read_format_cpio_filename_CP866_CP1251_win"
	"libarchive_test_read_format_cpio_filename_KOI8R_CP1251"
	"libarchive_test_read_format_cpio_filename_UTF8_CP1251"
	"libarchive_test_read_format_gtar_filename_CP866_KOI8R"
	"libarchive_test_read_format_gtar_filename_KOI8R_CP866"
	"libarchive_test_read_format_gtar_filename_eucJP_CP932"
	"libarchive_test_read_format_gtar_filename_CP866_CP1251"
	"libarchive_test_read_format_gtar_filename_CP866_CP1251_win"
	"libarchive_test_read_format_gtar_filename_KOI8R_CP1251"
	"libarchive_test_read_format_rar_unicode_CP932"
	"libarchive_test_read_format_zip_filename_CP932_eucJP"
	"libarchive_test_read_format_zip_filename_UTF8_eucJP"
	"libarchive_test_read_format_zip_filename_CP866_KOI8R"
	"libarchive_test_read_format_zip_filename_KOI8R_CP866"
	"libarchive_test_read_format_zip_filename_UTF8_KOI8R"
	"libarchive_test_read_format_zip_filename_UTF8_CP866"
	"libarchive_test_read_format_zip_filename_CP932_CP932"
	"libarchive_test_read_format_zip_filename_UTF8_CP932"
	"libarchive_test_read_format_zip_filename_CP866_CP1251"
	"libarchive_test_read_format_zip_filename_CP866_CP1251_win"
	"libarchive_test_read_format_zip_filename_KOI8R_CP1251"
	"libarchive_test_read_format_zip_filename_UTF8_CP1251"
	"libarchive_test_ustar_filename_encoding_KOI8R_UTF8"
	"libarchive_test_ustar_filename_encoding_KOI8R_CP866"
	"libarchive_test_ustar_filename_encoding_CP1251_UTF8"
	"libarchive_test_ustar_filename_encoding_Russian_Russia"
	"libarchive_test_ustar_filename_encoding_EUCJP_UTF8"
	"libarchive_test_ustar_filename_encoding_EUCJP_CP932"
	"libarchive_test_ustar_filename_encoding_CP932_UTF8"
	"libarchive_test_zip_filename_encoding_KOI8R"
	"libarchive_test_zip_filename_encoding_ru_RU_CP1251"
	"libarchive_test_zip_filename_encoding_Russian_Russia"
	"libarchive_test_zip_filename_encoding_EUCJP"
	"libarchive_test_zip_filename_encoding_CP932"
	"libarchive_test_read_format_cab_filename"
	"libarchive_test_read_format_lha_filename"
	"libarchive_test_read_format_tar_filename"
	"libarchive_test_read_format_ustar_filename"
	"libarchive_test_read_append_wrong_filter"
)
`))),
		},

		Writable: true,
		ScriptEarly: `
install -Dv /usr/src/CTestCustom.cmake /cure/
`,
	}, (*CMakeHelper)(nil)), version
}
func init() {
	native.mustRegister(Toolchain.newLibarchive, &Metadata{
		Name:        "libarchive",
		Description: "multi-format archive and compression library",
		Website:     "https://www.libarchive.org/",

		ID: 1558,
	})
}