# Description: Number to number name and money text conversion library
# URL: https://github.com/Numbertext/libnumbertext
# Maintainer: Tim Biermann, tbier at posteo dot de

name=libnumbertext
version=1.0.11
release=2
source=(https://github.com/Numbertext/libnumbertext/archive/$version/$name-$version.tar.gz
  libnumbertext-updateautotools.patch
  deprecated.patch.0)

build() {
  cd $name-$version

  patch -Np0 -i $SRC/deprecated.patch.0
  patch -Np1 -i $SRC/libnumbertext-updateautotools.patch

  autoreconf -vfi
  ./configure --prefix=/usr
  make
  make DESTDIR=$PKG install
}
