#!/bin/sh

MAKEDEPS="make"
DEPS="acl sh"

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"

ADDITIONAL="
	line-length.patch
	respect-cflags.patch
	flip-macro-logic.patch
    fix-xgettext-version-string.patch
"

prepare () {
    apply_patches
}

build () {
    LIBINTL=MUSL prefix=/usr make 
}

package () {
    make LIBINTL=MUSL prefix=/usr DESTDIR=$PKG_DEST install 
}