npm-pkgbuild 7.4.0 → 7.4.1

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": "7.4.0",
3
+ "version": "7.4.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -21,7 +21,8 @@ export class DEB extends Packager {
21
21
  }
22
22
 
23
23
  get packageFileName() {
24
- return `${this.properties.name}_${this.properties.version}_${this.properties.arch}${this.constructor.fileNameExtension}`;
24
+ const p = this.properties;
25
+ return `${p.name}_${p.version}_${p.arch}${this.constructor.fileNameExtension}`;
25
26
  }
26
27
 
27
28
  async execute(sources, options) {
@@ -42,6 +42,11 @@ export class PKG extends Packager {
42
42
  return fields;
43
43
  }
44
44
 
45
+ get packageFileName() {
46
+ const p = this.properties;
47
+ return `${p.name}-${p.version}-${p.release}.${p.arch}${this.constructor.fileNameExtension}`;
48
+ }
49
+
45
50
  async execute(sources, options) {
46
51
  const properties = this.properties;
47
52
  const mandatoryFields = this.mandatoryFields;
@@ -83,6 +88,8 @@ package() {
83
88
  }
84
89
  ];
85
90
 
91
+ const [meta,content] = split(transform(sources, transformers),);
92
+
86
93
  await copyEntries(transform(sources, transformers), staging);
87
94
 
88
95
  await execa("makepkg", ["-f"], { cwd: staging });
@@ -127,15 +134,6 @@ const fields = {
127
134
  };
128
135
 
129
136
  /*
130
- if (pkg.repository) {
131
- source = pkg.repository.url;
132
- if (!source.startsWith("git+")) {
133
- source = "git+" + source;
134
- }
135
-
136
- directory = pkg.repository.directory ? "/" + pkg.repository.directory : "";
137
- }
138
-
139
137
  const properties = {
140
138
  makedepends: "git"
141
139
  };
@@ -83,7 +83,6 @@ export class RPM extends Packager {
83
83
  `_topdir ${tmp}`,
84
84
  "-vv",
85
85
  "-bb",
86
- // `--target=${properties.arch}`,
87
86
  join(staging, specFileName)
88
87
  ]);
89
88