From 07ca7607b135dde2cb85db478cacfa9c1673009f Mon Sep 17 00:00:00 2001 From: Victor Tebar Date: Tue, 25 Oct 2022 11:17:10 +0200 Subject: [PATCH] New port : Cpptoml 0.1.1 --- main/cpptoml/.checksums | 2 ++ main/cpptoml/.pkgfiles | 10 ++++++++++ main/cpptoml/123.patch | 21 +++++++++++++++++++++ main/cpptoml/spkgbuild | 22 ++++++++++++++++++++++ 4 files changed, 55 insertions(+) create mode 100644 main/cpptoml/.checksums create mode 100644 main/cpptoml/.pkgfiles create mode 100644 main/cpptoml/123.patch create mode 100644 main/cpptoml/spkgbuild diff --git a/main/cpptoml/.checksums b/main/cpptoml/.checksums new file mode 100644 index 000000000..42125b49f --- /dev/null +++ b/main/cpptoml/.checksums @@ -0,0 +1,2 @@ +ea04d2f7906bf60064fad8636a97a611 123.patch +068919b9621e0b99dffa00277aa9f43d cpptoml-0.1.1.tar.gz diff --git a/main/cpptoml/.pkgfiles b/main/cpptoml/.pkgfiles new file mode 100644 index 000000000..68ccf56c8 --- /dev/null +++ b/main/cpptoml/.pkgfiles @@ -0,0 +1,10 @@ +cpptoml-0.1.1-2 +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/include/ +-rw-r--r-- root/root usr/include/cpptoml.h +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/cmake/ +drwxr-xr-x root/root usr/lib/cmake/cpptoml/ +-rw-r--r-- root/root usr/lib/cmake/cpptoml/cpptomlConfig.cmake +-rw-r--r-- root/root usr/lib/cmake/cpptoml/cpptomlConfigVersion.cmake +-rw-r--r-- root/root usr/lib/cmake/cpptoml/cpptomlTargets.cmake diff --git a/main/cpptoml/123.patch b/main/cpptoml/123.patch new file mode 100644 index 000000000..6ab767ad5 --- /dev/null +++ b/main/cpptoml/123.patch @@ -0,0 +1,21 @@ +From c55a516e90133d89d67285429c6474241346d27a Mon Sep 17 00:00:00 2001 +From: Dirk Eddelbuettel +Date: Mon, 30 Nov 2020 09:41:49 -0600 +Subject: [PATCH] g++-11 requires limits header + +--- + include/cpptoml.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/include/cpptoml.h b/include/cpptoml.h +index 5a00da3..1dc9fd1 100644 +--- a/include/cpptoml.h ++++ b/include/cpptoml.h +@@ -14,6 +14,7 @@ + #include + #include + #include ++#include + #include + #include + #include diff --git a/main/cpptoml/spkgbuild b/main/cpptoml/spkgbuild new file mode 100644 index 000000000..d60c0ddd7 --- /dev/null +++ b/main/cpptoml/spkgbuild @@ -0,0 +1,22 @@ +# description : cpptoml is a header-only library for parsing TOML +# homepage : https://github.com/skystrife/cpptoml +# depends : cmake ninja + +name=cpptoml +version=0.1.1 +release=2 +source="https://github.com/skystrife/cpptoml/archive/v$version/$name-$version.tar.gz + 123.patch" + +build() { + + patch -Np1 -d $name-$version -i $SRC/123.patch + + cmake -S $name-$version -B build -G Ninja \ + -D CMAKE_INSTALL_PREFIX=/usr \ + -D CMAKE_BUILD_TYPE=Release \ + -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \ + -Wno-dev + cmake --build build + DESTDIR=$PKG cmake --install build +}