npm-pkgbuild 20.7.11 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-pkgbuild",
3
- "version": "20.7.11",
3
+ "version": "20.7.12",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": false
@@ -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: { ...string_collection_attribute_writable, alias: "maintainer" },
97
- pkgname: { ...pkgbuild_name_attribute, collection: true },
98
- pkgver: pkgbuild_version_attribute,
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: { ...string_collection_attribute_writable, mandatory: true },
109
- install: string_attribute,
110
- changelog: string_attribute,
111
- source: string_collection_attribute_writable,
112
- validpgpkeys: string_collection_attribute_writable,
113
- noextract: default_attribute,
114
- cksums: string_collection_attribute_writable,
115
- md5sums: string_collection_attribute_writable,
116
- sha1sums: string_collection_attribute_writable,
117
- sha256sums: string_collection_attribute_writable,
118
- sha384sums: string_collection_attribute_writable,
119
- sha512sums: string_collection_attribute_writable,
120
- groups: string_collection_attribute_writable,
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
- makedepends: dependency_attribute_collection_writable,
131
- checkdepends: dependency_attribute_collection_writable,
132
- optdepends: dependency_attribute_collection_writable,
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
  )) {
@@ -5,7 +5,8 @@ import { createReadStream } from "node:fs";
5
5
  import {
6
6
  expand,
7
7
  expandContextDoubbleCurly,
8
- string_attribute,
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
- ...string_attribute,
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
- ...string_attribute,
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
  };