Separate package config

This commit is contained in:
crazywhalecc
2026-02-02 13:32:35 +08:00
parent f232588dbe
commit 455d42d162
21 changed files with 294 additions and 157 deletions

View File

@@ -1,67 +0,0 @@
attr:
source:
type: url
url: 'https://download.savannah.nongnu.org/releases/attr/attr-2.5.2.tar.gz'
source-mirror:
type: url
url: 'https://mirror.souseiseki.middlendian.com/nongnu/attr/attr-2.5.2.tar.gz'
metadata:
license-files: ['doc/COPYING.LGPL']
license: LGPL-2.1-or-later
brotli:
source:
type: ghtagtar
repo: google/brotli
match: 'v1\.\d.*'
binary: hosted # 等价于v2的provide-pre-built: true
metadata:
license-files: ['LICENSE']
license: MIT
bzip2:
source:
type: url
url: 'https://dl.static-php.dev/static-php-cli/deps/bzip2/bzip2-1.0.8.tar.gz'
source-mirror:
type: filelist
url: 'https://sourceware.org/pub/bzip2/'
regex: '/href="(?<file>bzip2-(?<version>[^"]+)\.tar\.gz)"/'
binary: hosted
metadata:
license-files: ['{registry_root}/src/globals/licenses/bzip2.txt']
license: bzip2-1.0.6
fastlz:
source:
type: git
url: 'https://github.com/ariya/FastLZ.git'
rev: master
metadata:
license-files: ['LICENSE.MIT']
license: MIT
openssl:
source:
type: ghrel
repo: openssl/openssl
match: 'openssl.+\.tar\.gz'
prefer-stable: true
source-mirror:
type: filelist
url: 'https://www.openssl.org/source/'
regex: '/href="(?<file>openssl-(?<version>[^"]+)\.tar\.gz)"/'
binary: hosted
metadata:
license-files: ['LICENSE.txt']
license: OpenSSL
zlib:
source:
type: ghrel
repo: madler/zlib
match: 'zlib.+\.tar\.gz'
binary: hosted
metadata:
license-files: ['{registry_root}/src/globals/licenses/zlib.txt']
license: Zlib-Custom

View File

@@ -1,48 +0,0 @@
attr:
type: library
static-libs@unix:
- libattr.a
artifact: attr
brotli:
type: library
pkg-configs:
- libbrotlicommon
- libbrotlidec
- libbrotlienc
headers:
- brotli
artifact: brotli
bzip2:
type: library
static-libs@unix:
- libbz2.a
headers:
- bzlib.h
artifact: bzip2
fastlz:
type: library
static-libs@unix:
- libfastlz.a
headers:
- fastlz.h
artifact: fastlz
openssl:
type: library
static-libs@unix:
- libssl.a
- libcrypto.a
headers: ['openssl']
depends:
- zlib
artifact: openssl
zlib:
type: library
static-libs@unix:
- libz.a
headers:
- zlib.h
- zconf.h
artifact: zlib

14
config/pkg/lib/attr.yml Normal file
View File

@@ -0,0 +1,14 @@
attr:
type: library
static-libs@unix:
- libattr.a
artifact:
source:
type: url
url: 'https://download.savannah.nongnu.org/releases/attr/attr-2.5.2.tar.gz'
source-mirror:
type: url
url: 'https://mirror.souseiseki.middlendian.com/nongnu/attr/attr-2.5.2.tar.gz'
metadata:
license-files: ['doc/COPYING.LGPL']
license: LGPL-2.1-or-later

17
config/pkg/lib/brotli.yml Normal file
View File

@@ -0,0 +1,17 @@
brotli:
type: library
pkg-configs:
- libbrotlicommon
- libbrotlidec
- libbrotlienc
headers:
- brotli
artifact:
source:
type: ghtagtar
repo: google/brotli
match: 'v1\.\d.*'
binary: hosted
metadata:
license-files: ['LICENSE']
license: MIT

18
config/pkg/lib/bzip2.yml Normal file
View File

@@ -0,0 +1,18 @@
bzip2:
type: library
static-libs@unix:
- libbz2.a
headers:
- bzlib.h
artifact:
source:
type: url
url: 'https://dl.static-php.dev/static-php-cli/deps/bzip2/bzip2-1.0.8.tar.gz'
source-mirror:
type: filelist
url: 'https://sourceware.org/pub/bzip2/'
regex: '/href="(?<file>bzip2-(?<version>[^"]+)\.tar\.gz)"/'
binary: hosted
metadata:
license-files: ['{registry_root}/src/globals/licenses/bzip2.txt']
license: bzip2-1.0.6

14
config/pkg/lib/fastlz.yml Normal file
View File

@@ -0,0 +1,14 @@
fastlz:
type: library
static-libs@unix:
- libfastlz.a
headers:
- fastlz.h
artifact:
source:
type: git
url: 'https://github.com/ariya/FastLZ.git'
rev: master
metadata:
license-files: ['LICENSE.MIT']
license: MIT

19
config/pkg/lib/gmp.yml Normal file
View File

@@ -0,0 +1,19 @@
gmp:
type: library
static-libs@unix:
- libgmp.a
headers:
- gmp.h
pkg-configs:
- gmp
artifact:
source:
type: filelist
url: 'https://gmplib.org/download/gmp/'
regex: '/href="(?<file>gmp-(?<version>[^"]+)\.tar\.xz)"/'
source-mirror:
type: url
url: 'https://dl.static-php.dev/static-php-cli/deps/gmp/gmp-6.3.0.tar.xz'
metadata:
license-files: ['@/gmp.txt']
license: Custom

View File

@@ -0,0 +1,22 @@
openssl:
type: library
static-libs@unix:
- libssl.a
- libcrypto.a
headers: ['openssl']
depends:
- zlib
artifact:
source:
type: ghrel
repo: openssl/openssl
match: 'openssl.+\.tar\.gz'
prefer-stable: true
source-mirror:
type: filelist
url: 'https://www.openssl.org/source/'
regex: '/href="(?<file>openssl-(?<version>[^"]+)\.tar\.gz)"/'
binary: hosted
metadata:
license-files: ['LICENSE.txt']
license: OpenSSL

16
config/pkg/lib/zlib.yml Normal file
View File

@@ -0,0 +1,16 @@
zlib:
type: library
static-libs@unix:
- libz.a
headers:
- zlib.h
- zconf.h
artifact:
source:
type: ghrel
repo: madler/zlib
match: 'zlib.+\.tar\.gz'
binary: hosted
metadata:
license-files: ['{registry_root}/src/globals/licenses/zlib.txt']
license: Zlib-Custom