APP=gettext
VERSION=0.20.2
BUILD=1sml
HOMEPAGE='https://www.gnu.org/software/gettext/'
DOWNLOAD='https://ftp.gnu.org/pub/gnu/gettext/gettext-0.20.2.tar.xz'
DESC="Toolkit to internationalize the messages given by shell scripts"
REQUIRES="attr acl libxml2"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --disable-static

  make $MAKEFLAGS
  make install DESTDIR=$PKG 

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
d6841381c3f3c7569a9c74bb91bd19d88838878e1b9aea5093034e501c05e992cdc7a2373d3f8d012b753916984182e5c09b247e81b41ea4ae602e41604a7454  gettext-0.20.2.tar.lz
"
