From d6eae6f643f1b1354f6e7007dc815c6abc1c35a1 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sat, 10 May 2025 19:05:37 +0300 Subject: [PATCH] Fix dependencies, add license and enable additional options --- pkg.info | 6 +++--- source.sh | 7 ++++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/pkg.info b/pkg.info index 3b3b659..0c244dd 100644 --- a/pkg.info +++ b/pkg.info @@ -1,10 +1,10 @@ name: gettext description: GNU internationalization library version: 0.22.4 -revision: 2 +revision: 3 url: https://www.gnu.org/software/gettext/ license: GFDL1.2-only,GPL2-only,GPL2-or-later,LGPL2-only architecture: any -depends: ["acl","bash","gcc","glibc"] -make_depends: ["bash","binutils","coreutils","gawk","gcc","glibc","grep","make","ncurses","sed","texinfo"] +depends: ["acl","attr","gcc","libunistring","libxml2","ncurses","sh"] +optional_depends: ["appstream"] type: source diff --git a/source.sh b/source.sh index d4b52a9..94162de 100644 --- a/source.sh +++ b/source.sh @@ -17,6 +17,9 @@ prepare() { build() { ./configure --prefix=/usr \ --disable-static \ + --enable-csharp \ + --enable-nls \ + --enable-xz \ --docdir=/usr/share/doc/gettext make } @@ -31,5 +34,7 @@ check() { # This function is used to move the compiled files into the output directory package() { make DESTDIR="$BPM_OUTPUT" install - chmod -v 0755 "$BPM_OUTPUT"/usr/lib/preloadable_libintl.so + + # Install package license + install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/gettext/COPYING }