summaryrefslogtreecommitdiff
path: root/cpptoml/Pkgfile
blob: ea904c795b2cc66f143a4d88467d6d0d5ee19414 (plain)
    1 # Description: cpptoml is a header-only library for parsing TOML
    2 # URL: https://github.com/skystrife/cpptoml
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: cmake
    5 
    6 name=cpptoml
    7 version=0.1.1
    8 release=1
    9 source=(https://github.com/skystrife/cpptoml/archive/v$version/$name-$version.tar.gz)
   10 
   11 build() {
   12   [[ -e /usr/bin/ninja ]] && PKGMK_CPPTOML+=' -G Ninja'
   13   cmake -S $name-$version -B build $PKGMK_CPPTOML \
   14     -D CMAKE_INSTALL_PREFIX=/usr \
   15     -D CMAKE_BUILD_TYPE=Release \
   16     -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
   17     -Wno-dev
   18   cmake --build build
   19   DESTDIR=$PKG cmake --install build
   20 }

Generated by cgit