#!/bin/sh

MAKEDEPS="make"
DEPS="acl sh"

PKG_VER=0.3.2
SOURCE=https://github.com/sabotage-linux/gettext-tiny/archive/refs/tags/v$PKG_VER.tar.gz
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 
}
