app=gettext
version=0.20.2
build=1sml
homepage="https://www.gnu.org/software/gettext/"
download="https://ftp.gnu.org/pub/gnu/gettext/gettext-$version.tar.xz"
desc="Toolkit to internationalize 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
"
