Add go-xcaddy,musl-toolchain,php,upx, and also glfw linux support

This commit is contained in:
crazywhalecc
2026-02-04 15:28:10 +08:00
parent 0afa1dd80c
commit e9c27dee1f
16 changed files with 365 additions and 102 deletions

View File

@@ -0,0 +1,6 @@
go-xcaddy:
type: target
artifact:
binary: custom
static-bins:
- xcaddy

View File

@@ -0,0 +1,6 @@
musl-toolchain:
type: target
artifact:
binary:
linux-x86_64: { type: url, url: 'https://dl.static-php.dev/static-php-cli/deps/musl-toolchain/x86_64-musl-toolchain.tgz', extract: '{pkg_root_path}/musl-toolchain' }
linux-aarch64: { type: url, url: 'https://dl.static-php.dev/static-php-cli/deps/musl-toolchain/aarch64-musl-toolchain.tgz', extract: '{pkg_root_path}/musl-toolchain' }

44
config/pkg/target/php.yml Normal file
View File

@@ -0,0 +1,44 @@
frankenphp:
type: virtual-target
artifact:
source:
type: ghtar
repo: php/frankenphp
prefer-stable: true
metadata:
license-files: [LICENSE]
license: MIT
depends:
- php-embed
- go-xcaddy
php:
type: target
artifact: php-src
depends@macos:
- libxml2
php-cgi:
type: virtual-target
depends:
- php
php-cli:
type: virtual-target
depends:
- php
php-embed:
type: virtual-target
depends:
- php
php-fpm:
type: virtual-target
depends:
- php
php-micro:
type: virtual-target
artifact:
source:
type: git
extract: php-src/sapi/micro
rev: master
url: 'https://github.com/static-php/phpmicro'
depends:
- php

View File

@@ -0,0 +1,7 @@
upx:
type: target
artifact:
binary:
linux-x86_64: { type: ghrel, repo: upx/upx, match: upx.+-amd64_linux\.tar\.xz, extract: { upx: '{pkg_root_path}/bin/upx' } }
linux-aarch64: { type: ghrel, repo: upx/upx, match: upx.+-arm64_linux\.tar\.xz, extract: { upx: '{pkg_root_path}/bin/upx' } }
windows-x86_64: { type: ghrel, repo: upx/upx, match: upx.+-win64\.zip, extract: { upx.exe: '{pkg_root_path}/bin/upx.exe' } }