libcbor: initial commit, version 0.11.0

This commit is contained in:
Tim Biermann 2024-03-02 20:24:17 +01:00
parent 4347a071c1
commit 8ecdb05b57
Signed by: tb
GPG Key ID: 42F8B4E30B673606
3 changed files with 67 additions and 0 deletions

36
libcbor/.footprint Normal file
View File

@ -0,0 +1,36 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/include/
-rw-r--r-- root/root usr/include/cbor.h
drwxr-xr-x root/root usr/include/cbor/
-rw-r--r-- root/root usr/include/cbor/arrays.h
-rw-r--r-- root/root usr/include/cbor/bytestrings.h
-rw-r--r-- root/root usr/include/cbor/callbacks.h
-rw-r--r-- root/root usr/include/cbor/cbor_export.h
-rw-r--r-- root/root usr/include/cbor/common.h
-rw-r--r-- root/root usr/include/cbor/configuration.h
-rw-r--r-- root/root usr/include/cbor/data.h
-rw-r--r-- root/root usr/include/cbor/encoding.h
-rw-r--r-- root/root usr/include/cbor/floats_ctrls.h
drwxr-xr-x root/root usr/include/cbor/internal/
-rw-r--r-- root/root usr/include/cbor/internal/builder_callbacks.h
-rw-r--r-- root/root usr/include/cbor/internal/encoders.h
-rw-r--r-- root/root usr/include/cbor/internal/loaders.h
-rw-r--r-- root/root usr/include/cbor/internal/memory_utils.h
-rw-r--r-- root/root usr/include/cbor/internal/stack.h
-rw-r--r-- root/root usr/include/cbor/internal/unicode.h
-rw-r--r-- root/root usr/include/cbor/ints.h
-rw-r--r-- root/root usr/include/cbor/maps.h
-rw-r--r-- root/root usr/include/cbor/serialization.h
-rw-r--r-- root/root usr/include/cbor/streaming.h
-rw-r--r-- root/root usr/include/cbor/strings.h
-rw-r--r-- root/root usr/include/cbor/tags.h
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/cmake/
drwxr-xr-x root/root usr/lib/cmake/libcbor/
-rw-r--r-- root/root usr/lib/cmake/libcbor/libcborConfig.cmake
-rw-r--r-- root/root usr/lib/cmake/libcbor/libcborConfigVersion.cmake
lrwxrwxrwx root/root usr/lib/libcbor.so -> libcbor.so.0.11
lrwxrwxrwx root/root usr/lib/libcbor.so.0.11 -> libcbor.so.0.11.0
-rwxr-xr-x root/root usr/lib/libcbor.so.0.11.0
drwxr-xr-x root/root usr/lib/pkgconfig/
-rw-r--r-- root/root usr/lib/pkgconfig/libcbor.pc

5
libcbor/.signature Normal file
View File

@ -0,0 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF31XWxtIFe2oERwrA7Y/tRDvMzxdvcTYfpFh77O2wwtW7+dDmWoNpGZQf06BqRlolHvNooZZMkXVVocbT7Tvi4AY=
SHA256 (Pkgfile) = a743d1578ebfa8a23d736cc59b9fc6770e02e5ca1ceb713949fd570f1ef85cbb
SHA256 (.footprint) = e08167f1c0eb60611fa3fd74d275374f282eed37dbed41810274aeb9e92a9e88
SHA256 (libcbor-0.11.0.tar.gz) = 89e0a83d16993ce50651a7501355453f5250e8729dfc8d4a251a78ea23bb26d7

26
libcbor/Pkgfile Normal file
View File

@ -0,0 +1,26 @@
# Description: C library for parsing and generating CBOR, the general-purpose schema-less binary data format
# URL: https://github.com/PJK/libcbor
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on:
# Optional: cmocka
name=libcbor
version=0.11.0
release=1
source=(https://github.com/PJK/libcbor/archive/v$version/$name-$version.tar.gz)
build() {
prt-get isinst cmocka && PKGMK_LIBCBOR+=' -D WITH_TESTS=OFF'
cmake -S $name-$version -B build -G Ninja $PKGMK_LIBCBOR \
-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" \
-D BUILD_SHARED_LIBS=ON \
-D WITH_EXAMPLES=OFF \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
}