# Maintainer: PktSurf <smlinux@pktsurf.in>
app=intltool
version=0.51.0
build=1sml
homepage="https://launchpad.net/intltool"
download="https://launchpad.net/intltool/trunk/$version/+download/intltool-$version.tar.gz"
desc="Utilities for translation support"
requires="perl-modules"

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

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

  applypatch $srcdir/intltool-regex-warning.patch
}

build() {
  ./configure \
    --prefix= 

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
508b0daa47fca109032336cf0211a6d2f38a867d7a9565d0b73fedb49090dbb0f92119a2c16499da63524fb29e454d6c7d2fab4fcef11417c7b139a0d1504cd0  intltool-0.51.0.tar.lz
2ca20ba6ff0492cd7c816cca4c17bbf11281ae4c24bb4f70cfa92826ff2127036b8a07de5a61765becfd0ff506ca092e05ecd7a02b796ba92745459786e7ba03  intltool-regex-warning.patch
"
