Add libiconv,libssh2,libxml2,xz

This commit is contained in:
crazywhalecc
2026-02-02 15:35:59 +08:00
parent 5a8341203b
commit 23db10d3cd
9 changed files with 187 additions and 27 deletions

View File

@@ -0,0 +1,18 @@
libiconv:
type: library
artifact:
source:
type: filelist
url: 'https://ftp.gnu.org/gnu/libiconv/'
regex: '/href="(?<file>libiconv-(?<version>[^"]+)\.tar\.gz)"/'
binary: hosted
metadata:
license-files: [COPYING.LIB]
license: LGPL-2.0-or-later
headers:
- iconv.h
- libcharset.h
- localcharset.h
static-libs@unix:
- libiconv.a
- libcharset.a

View File

@@ -0,0 +1,22 @@
libssh2:
type: library
artifact:
source:
type: ghrel
repo: libssh2/libssh2
match: libssh2.+\.tar\.gz
prefer-stable: true
binary: hosted
metadata:
license-files: [COPYING]
license: BSD-3-Clause
depends:
- openssl
headers:
- libssh2.h
- libssh2_publickey.h
- libssh2_sftp.h
static-libs@unix:
- libssh2.a
pkg-configs:
- libssh2

View File

@@ -0,0 +1,19 @@
libxml2:
type: library
artifact:
source:
type: ghtagtar
repo: GNOME/libxml2
match: 'v2\.\d+\.\d+$'
metadata:
license-files: [Copyright]
license: MIT
depends@unix:
- libiconv
suggests@unix:
- xz
- zlib
headers:
- libxml2
pkg-configs:
- libxml-2.0

20
config/pkg/lib/xz.yml Normal file
View File

@@ -0,0 +1,20 @@
xz:
type: library
artifact:
source:
type: ghrel
repo: tukaani-project/xz
match: xz.+\.tar\.xz
prefer-stable: true
binary: hosted
metadata:
license-files: [COPYING]
license: 0BSD
depends@unix:
- libiconv
headers@unix:
- lzma
static-libs@unix:
- liblzma.a
pkg-configs:
- liblzma