File tree Expand file tree Collapse file tree 3 files changed +29
-2
lines changed
src/SPC/builder/extension Expand file tree Collapse file tree 3 files changed +29
-2
lines changed Original file line number Diff line number Diff line change 11521152 "support" : {
11531153 "BSD" : " wip"
11541154 },
1155- "type" : " builtin" ,
1156- "arg-type" : " with-path" ,
1155+ "type" : " external" ,
1156+ "source" : " ext-zip" ,
1157+ "arg-type" : " custom" ,
11571158 "arg-type-windows" : " enable" ,
11581159 "lib-depends-unix" : [
11591160 " libzip"
Original file line number Diff line number Diff line change 263263 "path" : " LICENSE"
264264 }
265265 },
266+ "ext-zip" : {
267+ "type" : " url" ,
268+ "url" : " https://pecl.php.net/get/zip" ,
269+ "filename" : " ext-zip.tgz" ,
270+ "license" : {
271+ "type" : " file" ,
272+ "path" : " LICENSE"
273+ }
274+ },
266275 "ext-zstd" : {
267276 "type" : " git" ,
268277 "path" : " php-src/ext/zstd" ,
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ declare (strict_types=1 );
4+
5+ namespace SPC \builder \extension ;
6+
7+ use SPC \builder \Extension ;
8+ use SPC \util \CustomExt ;
9+
10+ #[CustomExt('zip ' )]
11+ class zip extends Extension
12+ {
13+ public function getUnixConfigureArg (bool $ shared = false ): string
14+ {
15+ return !$ shared ? '--with-zip= ' . BUILD_ROOT_PATH : '--enable-zip=shared ' ;
16+ }
17+ }
You can’t perform that action at this time.
0 commit comments