Skip to content

Commit

Permalink
feat: replace gettext with gettext-tiny
Browse files Browse the repository at this point in the history
Speed up builds, reduce tools size.

Fixes #363

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
  • Loading branch information
smira committed Sep 3, 2024
1 parent 50e55e6 commit eec0656
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 22 deletions.
8 changes: 4 additions & 4 deletions Pkgfile
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ vars:
gawk_sha256: ca9c16d3d11d0ff8c69d79dc0b47267e1329a69b39b799895604ed447d3ca90b
gawk_sha512: c274a62c7420e7b7769b8ed94db40024bd5917ff49bd50a77ad6df1f16ecf116968aaf85da94015479466bf5570b370b6fdd197f95212ae0c3509dfcb7d9e35a

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

# renovate: datasource=git-tags extractVersion=^v(?<version>.*)$ depName=git://git.kernel.org/pub/scm/git/git.git
git_version: 2.46.0
Expand Down
24 changes: 6 additions & 18 deletions gettext/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,16 @@ dependencies:
- stage: base
steps:
- sources:
- url: https://ftp.gnu.org/gnu/gettext/gettext-{{ .gettext_version }}.tar.xz
destination: gettext.tar.xz
sha256: "{{ .gettext_sha256 }}"
sha512: "{{ .gettext_sha512 }}"
- url: https://ftp.barfooze.de/pub/sabotage/tarballs/gettext-tiny-{{ .gettext_tiny_version }}.tar.xz
destination: gettext-tiny.tar.xz
sha256: "{{ .gettext_tiny_sha256 }}"
sha512: "{{ .gettext_tiny_sha512 }}"
prepare:
- |
tar -xJf gettext.tar.xz --strip-components=1
mkdir build
cd build
../configure \
--prefix=${TOOLCHAIN} \
--enable-relocatable \
--disable-shared \
--disable-java
build:
- |
cd build
make -j $(nproc)
tar -xJf gettext-tiny.tar.xz --strip-components=1
install:
- |
cd build
make install DESTDIR=/rootfs
make LIBINTL=musl DESTDIR=/rootfs prefix=${TOOLCHAIN} install
finalize:
- from: /rootfs
to: /

0 comments on commit eec0656

Please sign in to comment.