# Maintainer: PktSurf <smlinux@pktsurf.in>
app=gettext
version=0.21.1
build=2sml
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"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  ./configure \
    --prefix= \
    --disable-static \
    --disable-java

  make
  make install DESTDIR=$pkg 

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
5e8521cea715bafafea9c9080a042ccf8b8c65b7618602b15328e74079c2a962188bb1b05e612f8689ce6a7528f85e0e25ef43e590ff032a15b94c39c72f643e  gettext-0.21.1.tar.lz
"
