contrib/pugixml/Pkgfile

22 lines
618 B
Plaintext
Raw Normal View History

2018-11-29 16:16:06 +01:00
# Description: Light-weight, simple and fast XML parser for C++ with XPath support
2020-06-01 16:54:48 +02:00
# URL: https://pugixml.org
2019-09-12 14:00:20 +02:00
# Maintainer: Tim Biermann, tbier at posteo dot de
2018-11-29 16:16:06 +01:00
# Depends on: cmake
name=pugixml
2022-11-03 14:13:53 +01:00
version=1.13
2019-09-16 09:17:16 +02:00
release=1
2023-05-28 10:29:46 +02:00
source=(https://github.com/zeux/pugixml/releases/download/v$version/$name-$version.tar.gz)
2018-11-29 16:16:06 +01:00
build() {
2023-05-28 10:29:46 +02:00
cmake -S $name-$version -B build -G Ninja \
2020-11-08 13:13:38 +01:00
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
2020-11-26 22:06:23 +01:00
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
2020-11-08 13:13:38 +01:00
-D BUILD_SHARED_LIBS=ON \
-Wno-dev
2020-06-01 16:54:48 +02:00
cmake --build build
2020-07-08 15:01:36 +02:00
DESTDIR=$PKG cmake --install build
2018-11-29 16:16:06 +01:00
}