Fix dependencies, add license and enable additional options

This commit is contained in:
2025-05-10 19:05:37 +03:00
parent 4fa677099f
commit d6eae6f643
2 changed files with 9 additions and 4 deletions
+3 -3
View File
@@ -1,10 +1,10 @@
name: gettext name: gettext
description: GNU internationalization library description: GNU internationalization library
version: 0.22.4 version: 0.22.4
revision: 2 revision: 3
url: https://www.gnu.org/software/gettext/ url: https://www.gnu.org/software/gettext/
license: GFDL1.2-only,GPL2-only,GPL2-or-later,LGPL2-only license: GFDL1.2-only,GPL2-only,GPL2-or-later,LGPL2-only
architecture: any architecture: any
depends: ["acl","bash","gcc","glibc"] depends: ["acl","attr","gcc","libunistring","libxml2","ncurses","sh"]
make_depends: ["bash","binutils","coreutils","gawk","gcc","glibc","grep","make","ncurses","sed","texinfo"] optional_depends: ["appstream"]
type: source type: source
+6 -1
View File
@@ -17,6 +17,9 @@ prepare() {
build() { build() {
./configure --prefix=/usr \ ./configure --prefix=/usr \
--disable-static \ --disable-static \
--enable-csharp \
--enable-nls \
--enable-xz \
--docdir=/usr/share/doc/gettext --docdir=/usr/share/doc/gettext
make make
} }
@@ -31,5 +34,7 @@ check() {
# This function is used to move the compiled files into the output directory # This function is used to move the compiled files into the output directory
package() { package() {
make DESTDIR="$BPM_OUTPUT" install 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
} }