forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgnu-libiconv.yaml
80 lines (68 loc) · 2.09 KB
/
gnu-libiconv.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
package:
name: gnu-libiconv
version: "1.17"
epoch: 1
description: GNU charset conversion library for libc which doesn't implement it
copyright:
- license: LGPL-2.1-or-later
environment:
contents:
packages:
- autoconf
- automake
- build-base
- busybox
- ca-certificates-bundle
- openssf-compiler-options
pipeline:
- uses: fetch
with:
expected-sha256: 8f74213b56238c85a50a5329f77e06198771e70dd9a739779f4c02f65d971313
uri: https://ftp.gnu.org/pub/gnu/libiconv/libiconv-${{package.version}}.tar.gz
- runs: |
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--mandir=/usr/share/man \
--docdir=/usr/share/doc/${{package.name}}/ \
--disable-nls \
--disable-static \
--enable-extra-encodings
# since users of this package use this package to work around missing features in musls iconv,
# enable extra encodings (like the CP437) to be closer to glibcs iconv.
# work around rpath issue
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
- uses: autoconf/make
- runs: |
mkdir -p "${{targets.destdir}}"/usr/bin
mkdir -p "${{targets.destdir}}"/usr/include/gnu-libiconv
make DESTDIR="${{targets.destdir}}/" install
# move headers so they dont clash with libc headers
mv "${{targets.destdir}}"/usr/include/*.h "${{targets.destdir}}"/usr/include/gnu-libiconv
mv "${{targets.destdir}}"/usr/bin/iconv "${{targets.destdir}}"/usr/bin/gnu-iconv
- uses: strip
subpackages:
- name: gnu-libiconv-doc
pipeline:
- uses: split/manpages
description: gnu-libiconv manpages
- name: gnu-libiconv-dev
pipeline:
- uses: split/dev
dependencies:
runtime:
- gnu-libiconv
- gnu-libiconv
description: gnu-libiconv dev
update:
enabled: true
release-monitor:
identifier: 10656
test:
pipeline:
# AUTOGENERATED
- runs: |
gnu-iconv --version
gnu-iconv --help