summaryrefslogtreecommitdiff
path: root/repo/system/gettext.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-02-27 00:55:34 +0000
committerdavidovski <david@davidovski.xyz>2022-02-27 00:55:34 +0000
commit79c82d8fc0a4f6618429a0373bb832afd105543e (patch)
tree81353122644b10b2c3d5be52bf3524890cbc377b /repo/system/gettext.xibuild
parent7e7775ad670c99b2823d812c782f6ff258e79b9b (diff)
added all missing libraries and headers that musl doesnt have
Diffstat (limited to 'repo/system/gettext.xibuild')
-rw-r--r--repo/system/gettext.xibuild28
1 files changed, 17 insertions, 11 deletions
diff --git a/repo/system/gettext.xibuild b/repo/system/gettext.xibuild
index 501a14a..11b6754 100644
--- a/repo/system/gettext.xibuild
+++ b/repo/system/gettext.xibuild
@@ -1,22 +1,28 @@
#!/bin/sh
-MAKEDEPS="make "
+MAKEDEPS="make"
DEPS="acl sh"
-PKG_VER=0.21
-SOURCE=https://ftp.gnu.org/pub/gnu/gettext/gettext-$PKG_VER.tar.gz
-DESC="GNU internationalization library"
+PKG_VER=0.3.2
+SOURCE=https://ftp.barfooze.de/pub/sabotage/tarballs/gettext-tiny-$PKG_VER.tar.xz
+DESC="Lightweight replacement for tools used in the GNU gettext suite"
-build () {
- ./configure --prefix=/usr --disable-static --docdir=/usr/share/doc/gettext-$PKG_VER
- make
+ADDITIONAL="
+ https://raw.githubusercontent.com/dslm4515/Musl-LFS/master/patches/gettext-tiny-adiele/line-length.patch
+ https://raw.githubusercontent.com/dslm4515/Musl-LFS/master/patches/gettext-tiny-adiele/respect-cflags.patch
+ https://raw.githubusercontent.com/dslm4515/Musl-LFS/master/patches/gettext-tiny-adiele/stop-doing-macro-crap.patch
+"
+
+prepare () {
+ for p in *.patch; do
+ patch -Np1 -i $p || true
+ done
}
-check () {
- make check
+build () {
+ LIBINTL=MUSL prefix=/usr make
}
package () {
- make DESTDIR=$PKG_DEST install
- chmod -v 0755 $PKG_DEST/usr/lib/preloadable_libintl.so
+ make LIBINTL=MUSL prefix=/usr DESTDIR=$PKG_DEST install
}