npm-pkgbuild 20.7.10 → 20.7.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/output/arch.mjs +56 -32
- package/src/output/packager.mjs +4 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npm-pkgbuild",
|
|
3
|
-
"version": "20.7.
|
|
3
|
+
"version": "20.7.12",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": false
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"lint:docs": "documentation lint ./src**/*.mjs"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@npmcli/arborist": "^9.
|
|
49
|
+
"@npmcli/arborist": "^9.9.0",
|
|
50
50
|
"@vercel/nft": "^1.10.2",
|
|
51
51
|
"aggregate-async-iterator": "^1.2.5",
|
|
52
52
|
"commander": "^15.0.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"uti": "^8.11.2"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@types/node": "^26.0
|
|
70
|
+
"@types/node": "^26.1.0",
|
|
71
71
|
"ava": "^8.0.1",
|
|
72
72
|
"c8": "^11.0.0",
|
|
73
73
|
"documentation": "^14.0.3",
|
package/src/output/arch.mjs
CHANGED
|
@@ -90,50 +90,77 @@ export class ARCH extends Packager {
|
|
|
90
90
|
static attributes = {
|
|
91
91
|
Maintainer: {
|
|
92
92
|
...string_collection_attribute_writable,
|
|
93
|
+
name: "Maintainer",
|
|
93
94
|
alias: "maintainer",
|
|
94
95
|
prefix: "# "
|
|
95
96
|
},
|
|
96
|
-
packager: {
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
packager: {
|
|
98
|
+
...string_collection_attribute_writable,
|
|
99
|
+
name: "packager",
|
|
100
|
+
alias: "maintainer"
|
|
101
|
+
},
|
|
102
|
+
pkgname: { ...pkgbuild_name_attribute, name: "pkgname", collection: true },
|
|
103
|
+
pkgver: { ...pkgbuild_version_attribute, name: "pkgver" },
|
|
99
104
|
pkgrel: {
|
|
100
105
|
...integer_attribute,
|
|
106
|
+
name: "pkgrel",
|
|
101
107
|
alias: "release",
|
|
102
108
|
default: 1,
|
|
103
109
|
mandatory: true
|
|
104
110
|
},
|
|
105
|
-
epoch: { ...integer_attribute, default: 0 },
|
|
106
|
-
pkgdesc: pkgbuild_description_attribute,
|
|
107
|
-
url: { ...string_attribute, alias: "homepage" },
|
|
108
|
-
license: {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
111
|
+
epoch: { ...integer_attribute, name: "epoch", default: 0 },
|
|
112
|
+
pkgdesc: { ...pkgbuild_description_attribute, name: "pkgdesc" },
|
|
113
|
+
url: { ...string_attribute, name: "url", alias: "homepage" },
|
|
114
|
+
license: {
|
|
115
|
+
...string_collection_attribute_writable,
|
|
116
|
+
name: "license",
|
|
117
|
+
mandatory: true
|
|
118
|
+
},
|
|
119
|
+
install: { ...string_attribute, name: "install" },
|
|
120
|
+
changelog: { ...string_attribute, name: "changelog" },
|
|
121
|
+
source: { ...string_collection_attribute_writable, name: "source" },
|
|
122
|
+
validpgpkeys: {
|
|
123
|
+
...string_collection_attribute_writable,
|
|
124
|
+
name: "validpgpkeys"
|
|
125
|
+
},
|
|
126
|
+
noextract: { ...default_attribute, name: "noextract" },
|
|
127
|
+
cksums: { ...string_collection_attribute_writable, name: "cksums" },
|
|
128
|
+
md5sums: { ...string_collection_attribute_writable, name: "md5sums" },
|
|
129
|
+
sha1sums: { ...string_collection_attribute_writable, name: "sha1sums" },
|
|
130
|
+
sha256sums: { ...string_collection_attribute_writable, name: "sha256sums" },
|
|
131
|
+
sha384sums: { ...string_collection_attribute_writable, name: "sha384sums" },
|
|
132
|
+
sha512sums: { ...string_collection_attribute_writable, name: "sha512sums" },
|
|
133
|
+
groups: { ...string_collection_attribute_writable, name: "groups" },
|
|
121
134
|
arch: {
|
|
122
135
|
...string_collection_attribute_writable,
|
|
136
|
+
name: "arch",
|
|
123
137
|
default: ["any"],
|
|
124
138
|
mandatory: true
|
|
125
139
|
},
|
|
126
|
-
backup: string_collection_attribute_writable,
|
|
140
|
+
backup: { ...string_collection_attribute_writable, name: "backup" },
|
|
127
141
|
depends: {
|
|
128
|
-
...dependency_attribute_collection_writable /*, alias: "dependencies"
|
|
142
|
+
...dependency_attribute_collection_writable /*, alias: "dependencies" */,
|
|
143
|
+
name: "depends"
|
|
144
|
+
},
|
|
145
|
+
makedepends: {
|
|
146
|
+
...dependency_attribute_collection_writable,
|
|
147
|
+
name: "makedepends"
|
|
148
|
+
},
|
|
149
|
+
checkdepends: {
|
|
150
|
+
...dependency_attribute_collection_writable,
|
|
151
|
+
name: "checkdepends"
|
|
152
|
+
},
|
|
153
|
+
optdepends: {
|
|
154
|
+
...dependency_attribute_collection_writable,
|
|
155
|
+
name: "optdepends"
|
|
156
|
+
},
|
|
157
|
+
conflicts: {
|
|
158
|
+
...dependency_attribute_collection_writable,
|
|
159
|
+
name: "conflicts"
|
|
129
160
|
},
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
conflicts: dependency_attribute_collection_writable,
|
|
134
|
-
provides: dependency_attribute_collection_writable,
|
|
135
|
-
replaces: dependency_attribute_collection_writable,
|
|
136
|
-
options: default_attribute
|
|
161
|
+
provides: { ...dependency_attribute_collection_writable, name: "provides" },
|
|
162
|
+
replaces: { ...dependency_attribute_collection_writable, name: "replaces" },
|
|
163
|
+
options: { ...default_attribute, name: "options" }
|
|
137
164
|
};
|
|
138
165
|
|
|
139
166
|
static async prepare(options = {}, variant = {}) {
|
|
@@ -246,10 +273,7 @@ package() {
|
|
|
246
273
|
const ownership = [];
|
|
247
274
|
|
|
248
275
|
for await (const file of copyEntries(
|
|
249
|
-
transform(
|
|
250
|
-
aggregate(sources),
|
|
251
|
-
transformer
|
|
252
|
-
),
|
|
276
|
+
transform(aggregate(sources), transformer),
|
|
253
277
|
join(staging, "src"),
|
|
254
278
|
expander
|
|
255
279
|
)) {
|
package/src/output/packager.mjs
CHANGED
|
@@ -5,7 +5,8 @@ import { createReadStream } from "node:fs";
|
|
|
5
5
|
import {
|
|
6
6
|
expand,
|
|
7
7
|
expandContextDoubbleCurly,
|
|
8
|
-
|
|
8
|
+
string_collection_attribute_writable,
|
|
9
|
+
name_attribute,
|
|
9
10
|
description_attribute,
|
|
10
11
|
version_attribute_writable
|
|
11
12
|
} from "pacc";
|
|
@@ -274,7 +275,7 @@ export class Packager {
|
|
|
274
275
|
}
|
|
275
276
|
|
|
276
277
|
export const pkgbuild_name_attribute = {
|
|
277
|
-
...
|
|
278
|
+
...name_attribute,
|
|
278
279
|
alias: "name",
|
|
279
280
|
mandatory: true,
|
|
280
281
|
pattern: /^[a-z_][a-z0-9_\-]*$/i
|
|
@@ -302,10 +303,8 @@ export const dependency_type = {
|
|
|
302
303
|
};
|
|
303
304
|
|
|
304
305
|
export const dependency_attribute_collection_writable = {
|
|
305
|
-
...
|
|
306
|
+
...string_collection_attribute_writable,
|
|
306
307
|
type: dependency_type,
|
|
307
|
-
writable: true,
|
|
308
|
-
collection: true,
|
|
309
308
|
separator: " ",
|
|
310
309
|
pattern: /^[a-z_][a-z0-9_\-]*$/i
|
|
311
310
|
};
|