description="Light-weight, simple and fast XML parser for C++ with XPath support."
url="http://pugixml.org"

contributors="Pierre B, Greg"
packager="tnut <tnut@nutyx.org>"

makedepends=(cmake)

name=pugixml
version=1.10

source=(http://github.com/zeux/pugixml/releases/download/v${version}/pugixml-${version}.tar.gz)

build() {
  mkdir -p build
  cd $SRC/build

  cmake $SRC/pugixml-$version \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DBUILD_SHARED_LIBS=ON
  make
  make DESTDIR=$PKG install  
}
