pugixml: updated cmake syntax

This commit is contained in:
Tim Biermann 2020-06-01 14:54:48 +00:00
parent 39a4cb0d6e
commit efe6048f77
2 changed files with 6 additions and 10 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3/p8KmNefe597YNfDj3857hEJHlJ3A/BkQa00IWJx37U0KBl9zphao5+694rWB/2pwRl6BPDmu+Ae1f8m2uwqAk= RWSagIOpLGJF36c97ZMyWwCLdPLKr7ZXDS1EvFRGAF++i83rmHPW6ZjcS9weE5rAq66DoNoktgzl2DbE1STyTUBsoXvvmhgs6gA=
SHA256 (Pkgfile) = 4900ab6a52ce4b36abab2c47966954928137b397287f2a518d2d6739e75368e4 SHA256 (Pkgfile) = 576d912308c1bf38de7f11a2ef02e726de53aff65671599cdbc9d3158b4a3360
SHA256 (.footprint) = 74da7330ff4c0c28b8154ea9b835616c23adcc2c1554994577e1d96c8cfc2509 SHA256 (.footprint) = 74da7330ff4c0c28b8154ea9b835616c23adcc2c1554994577e1d96c8cfc2509
SHA256 (pugixml-1.10.tar.gz) = 55f399fbb470942410d348584dc953bcaec926415d3462f471ef350f29b5870a SHA256 (pugixml-1.10.tar.gz) = 55f399fbb470942410d348584dc953bcaec926415d3462f471ef350f29b5870a

View File

@ -1,7 +1,6 @@
# Description: Light-weight, simple and fast XML parser for C++ with XPath support # Description: Light-weight, simple and fast XML parser for C++ with XPath support
# URL: http://pugixml.org # URL: https://pugixml.org
# Maintainer: Tim Biermann, tbier at posteo dot de # Maintainer: Tim Biermann, tbier at posteo dot de
# Packager: Pedja, predivan at mts dot rs
# Depends on: cmake # Depends on: cmake
name=pugixml name=pugixml
@ -10,14 +9,11 @@ release=1
source=(http://github.com/zeux/pugixml/releases/download/v$version/$name-$version.tar.gz) source=(http://github.com/zeux/pugixml/releases/download/v$version/$name-$version.tar.gz)
build() { build() {
cd $name-$version cmake -S$name-$version -Bbuild -GNinja \
mkdir -p build && cd build
cmake \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=ON ../ -DBUILD_SHARED_LIBS=ON ../
make cmake --build build
make DESTDIR=$PKG install DESTDIR=$PKG cmake --build build --target install
} }