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"

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

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

  applypatch $srcdir/intltool-regex-warning.patch

  ./configure \
    --prefix="" 

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
4c93cb26592ed0b1622d3b7800b5d6622ffa36f58ac73f2ef0bddfab522565fdfb8fa73d81914b9a202f1d62bc995a08960f8adb9f62c86918e75498e85fbfdf  intltool-0.51.0.tar.gz
2ca20ba6ff0492cd7c816cca4c17bbf11281ae4c24bb4f70cfa92826ff2127036b8a07de5a61765becfd0ff506ca092e05ecd7a02b796ba92745459786e7ba03  intltool-regex-warning.patch
"
