From d86bf122939d7ea99a72a7c4ce6d2c224205ed6e Mon Sep 17 00:00:00 2001 From: Tim Biermann Date: Sun, 28 Jan 2024 10:45:16 +0100 Subject: [PATCH] utfcpp: initial commit, version 4.0.5 --- utfcpp/.footprint | 17 +++++++++++++++++ utfcpp/.signature | 5 +++++ utfcpp/Pkgfile | 21 +++++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 utfcpp/.footprint create mode 100644 utfcpp/.signature create mode 100644 utfcpp/Pkgfile diff --git a/utfcpp/.footprint b/utfcpp/.footprint new file mode 100644 index 000000000..4f0a82dba --- /dev/null +++ b/utfcpp/.footprint @@ -0,0 +1,17 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/include/ +drwxr-xr-x root/root usr/include/utf8cpp/ +-rw-r--r-- root/root usr/include/utf8cpp/utf8.h +drwxr-xr-x root/root usr/include/utf8cpp/utf8/ +-rw-r--r-- root/root usr/include/utf8cpp/utf8/checked.h +-rw-r--r-- root/root usr/include/utf8cpp/utf8/core.h +-rw-r--r-- root/root usr/include/utf8cpp/utf8/cpp11.h +-rw-r--r-- root/root usr/include/utf8cpp/utf8/cpp17.h +-rw-r--r-- root/root usr/include/utf8cpp/utf8/cpp20.h +-rw-r--r-- root/root usr/include/utf8cpp/utf8/unchecked.h +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/utf8cpp/ +drwxr-xr-x root/root usr/share/utf8cpp/cmake/ +-rw-r--r-- root/root usr/share/utf8cpp/cmake/utf8cppConfig.cmake +-rw-r--r-- root/root usr/share/utf8cpp/cmake/utf8cppConfigVersion.cmake +-rw-r--r-- root/root usr/share/utf8cpp/cmake/utf8cppTargets.cmake diff --git a/utfcpp/.signature b/utfcpp/.signature new file mode 100644 index 000000000..90c20f482 --- /dev/null +++ b/utfcpp/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF33J0kQ7vZR5bwiMKSdUW8LFFpSjbfyr3V2W3lWHyYj/1W1uhBjvWSdOhJethuaf+URUsz2VYUjGudulQRwQs7QQ= +SHA256 (Pkgfile) = e28d097bae132302396be938371bffda8dbfbf8e2ec2601c6f6a91a3479979ca +SHA256 (.footprint) = 031e43557e47eabffe57a1379a0abe4950f4b530007957a58eda3715ea44ca49 +SHA256 (utfcpp-4.0.5.tar.gz) = ffc668a310e77607d393f3c18b32715f223da1eac4c4d6e0579a11df8e6b59cf diff --git a/utfcpp/Pkgfile b/utfcpp/Pkgfile new file mode 100644 index 000000000..88373e66b --- /dev/null +++ b/utfcpp/Pkgfile @@ -0,0 +1,21 @@ +# Description: UTF-8 with C++ in a Portable Way +# URL: https://github.com/nemtrif/utfcpp +# Maintainer: Tim Biermann, tbier at posteo dot de + +name=utfcpp +version=4.0.5 +release=1 +source=(https://github.com/nemtrif/utfcpp/archive/refs/tags/v$version.tar.gz) +renames=($name-$version.tar.gz) + +build() { + cmake -S $name-$version -B build -G Ninja \ + -D CMAKE_INSTALL_PREFIX=/usr \ + -D CMAKE_INSTALL_LIBDIR=lib \ + -D CMAKE_BUILD_TYPE=Release \ + -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \ + -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \ + -Wno-dev + cmake --build build + DESTDIR=$PKG cmake --install build +}