Skip to content

Commit eec0656

Browse files
committed
feat: replace gettext with gettext-tiny
Speed up builds, reduce tools size. Fixes #363 Signed-off-by: Andrey Smirnov <[email protected]>
1 parent 50e55e6 commit eec0656

File tree

2 files changed

+10
-22
lines changed

2 files changed

+10
-22
lines changed

Pkgfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ vars:
112112
gawk_sha256: ca9c16d3d11d0ff8c69d79dc0b47267e1329a69b39b799895604ed447d3ca90b
113113
gawk_sha512: c274a62c7420e7b7769b8ed94db40024bd5917ff49bd50a77ad6df1f16ecf116968aaf85da94015479466bf5570b370b6fdd197f95212ae0c3509dfcb7d9e35a
114114

115-
# renovate: datasource=git-tags extractVersion=^v(?<version>.*)$ depName=git://git.savannah.gnu.org/gettext.git
116-
gettext_version: 0.22.5
117-
gettext_sha256: fe10c37353213d78a5b83d48af231e005c4da84db5ce88037d88355938259640
118-
gettext_sha512: a60999bb9d09441f138214d87acb7e59aab81e765bb9253a77c54902681c5de164a5a04de2a9778dfb479dbdefaab2d5de1fbaf6095c555c43e7e9fd7a1c09bd
115+
# renovate: datasource=github-tags extractVersion=^v(?<version>.*)$ depName=sabotage-linux/gettext-tiny
116+
gettext_tiny_version: 0.3.2
117+
gettext_tiny_sha256: a9a72cfa21853f7d249592a3c6f6d36f5117028e24573d092f9184ab72bbe187
118+
gettext_tiny_sha512: 0efde2ce995c1bc5e2b983a5c83b8532cb8e99ae9043c5de7085cf550eb2c052bad4641782fb64b2bc70434844a935f0935d9f1a62954d7facbe247fe4ce1e21
119119

120120
# renovate: datasource=git-tags extractVersion=^v(?<version>.*)$ depName=git://git.kernel.org/pub/scm/git/git.git
121121
git_version: 2.46.0

gettext/pkg.yaml

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,16 @@ dependencies:
33
- stage: base
44
steps:
55
- sources:
6-
- url: https://ftp.gnu.org/gnu/gettext/gettext-{{ .gettext_version }}.tar.xz
7-
destination: gettext.tar.xz
8-
sha256: "{{ .gettext_sha256 }}"
9-
sha512: "{{ .gettext_sha512 }}"
6+
- url: https://ftp.barfooze.de/pub/sabotage/tarballs/gettext-tiny-{{ .gettext_tiny_version }}.tar.xz
7+
destination: gettext-tiny.tar.xz
8+
sha256: "{{ .gettext_tiny_sha256 }}"
9+
sha512: "{{ .gettext_tiny_sha512 }}"
1010
prepare:
1111
- |
12-
tar -xJf gettext.tar.xz --strip-components=1
13-
mkdir build
14-
cd build
15-
../configure \
16-
--prefix=${TOOLCHAIN} \
17-
--enable-relocatable \
18-
--disable-shared \
19-
--disable-java
20-
build:
21-
- |
22-
cd build
23-
make -j $(nproc)
12+
tar -xJf gettext-tiny.tar.xz --strip-components=1
2413
install:
2514
- |
26-
cd build
27-
make install DESTDIR=/rootfs
15+
make LIBINTL=musl DESTDIR=/rootfs prefix=${TOOLCHAIN} install
2816
finalize:
2917
- from: /rootfs
3018
to: /

0 commit comments

Comments
 (0)