Use zig toolchain by default, lint files

This commit is contained in:
crazywhalecc
2026-02-03 14:01:41 +08:00
parent 6fdbf629dc
commit 38f742156d
20 changed files with 373 additions and 365 deletions

View File

@@ -4,15 +4,11 @@ curl:
source:
type: ghrel
repo: curl/curl
match: 'curl.+\.tar\.xz'
match: curl.+\.tar\.xz
prefer-stable: true
metadata:
license-files: [COPYING]
license: curl
static-libs@unix:
- libcurl.a
headers:
- curl
depends@unix:
- openssl
- zlib
@@ -31,3 +27,7 @@ curl:
- CoreFoundation
- CoreServices
- SystemConfiguration
headers:
- curl
static-libs@unix:
- libcurl.a

View File

@@ -10,10 +10,10 @@ gettext:
license: LGPL-2.1-or-later
depends:
- libiconv
suggests:
- ncurses
- libxml2
frameworks:
- CoreFoundation
static-libs@unix:
- libintl.a
suggests:
- ncurses
- libxml2

View File

@@ -11,11 +11,11 @@ idn2:
depends@macos:
- libiconv
- gettext
headers:
- idn2.h
pkg-configs:
- libidn2
suggests@unix:
- libiconv
- gettext
- libunistring
headers:
- idn2.h
pkg-configs:
- libidn2

View File

@@ -11,6 +11,9 @@ krb5:
source-root: src
depends:
- openssl
suggests:
- ldap
- libedit
frameworks:
- Kerberos
headers:
@@ -18,6 +21,3 @@ krb5:
- gssapi/gssapi.h
pkg-configs:
- krb5-gssapi
suggests:
- ldap
- libedit

View File

@@ -10,10 +10,10 @@ libxml2:
license: MIT
depends@unix:
- libiconv
suggests@unix:
- xz
- zlib
headers:
- libxml2
pkg-configs:
- libxml-2.0
suggests@unix:
- xz
- zlib

View File

@@ -11,14 +11,14 @@ nghttp2:
depends:
- zlib
- openssl
suggests:
- libxml2
- nghttp3
- ngtcp2
- brotli
headers:
- nghttp2
pkg-configs:
- libnghttp2
static-libs@unix:
- libnghttp2.a
suggests:
- libxml2
- nghttp3
- ngtcp2
- brotli

View File

@@ -11,6 +11,9 @@ ngtcp2:
license: MIT
depends:
- openssl
suggests:
- nghttp3
- brotli
headers:
- ngtcp2
pkg-configs:
@@ -19,6 +22,3 @@ ngtcp2:
static-libs@unix:
- libngtcp2.a
- libngtcp2_crypto_ossl.a
suggests:
- nghttp3
- brotli

View File

@@ -0,0 +1,9 @@
pkg-config:
type: target
artifact:
source: 'https://dl.static-php.dev/static-php-cli/deps/pkg-config/pkg-config-0.29.2.tar.gz'
binary:
linux-x86_64: { type: ghrel, repo: static-php/static-php-cli-hosted, match: pkg-config-x86_64-linux-musl-1.2.5.txz, extract: { bin/pkg-config: '{pkg_root_path}/bin/pkg-config' } }
linux-aarch64: { type: ghrel, repo: static-php/static-php-cli-hosted, match: pkg-config-aarch64-linux-musl-1.2.5.txz, extract: { bin/pkg-config: '{pkg_root_path}/bin/pkg-config' } }
macos-x86_64: { type: ghrel, repo: static-php/static-php-cli-hosted, match: pkg-config-x86_64-darwin.txz, extract: { bin/pkg-config: '{pkg_root_path}/bin/pkg-config' } }
macos-aarch64: { type: ghrel, repo: static-php/static-php-cli-hosted, match: pkg-config-aarch64-darwin.txz, extract: { bin/pkg-config: '{pkg_root_path}/bin/pkg-config' } }

View File

@@ -0,0 +1,4 @@
zig:
type: target
artifact:
binary: custom