27 lines
722 B
Plaintext
27 lines
722 B
Plaintext
![]() |
# Description: Light-weight, simple and fast XML parser for C++ with XPath support
|
||
|
# URL: http://pugixml.org
|
||
|
# Maintainer: Pedja, predivan at mts dot rs
|
||
|
# Depends on: cmake
|
||
|
|
||
|
name=pugixml
|
||
|
version=1.9
|
||
|
release=2
|
||
|
source=(http://github.com/zeux/pugixml/releases/download/v$version/$name-$version.tar.gz
|
||
|
pkg-config.patch)
|
||
|
|
||
|
build() {
|
||
|
cd $name-$version
|
||
|
patch -p1 -i $SRC/pkg-config.patch
|
||
|
|
||
|
mkdir -p build && cd build
|
||
|
cmake \
|
||
|
-DCMAKE_BUILD_TYPE=Release \
|
||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
||
|
-DBUILD_SHARED_LIBS=ON ../
|
||
|
make
|
||
|
make DESTDIR=$PKG install
|
||
|
# weird
|
||
|
# touch $PKG/usr/include/*.hpp -r $PKG/usr/lib/cmake/pugixml/pugixml-config.cmake
|
||
|
}
|