summaryrefslogtreecommitdiff
path: root/repo/system/gettext.xibuild
diff options
context:
space:
mode:
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
}