diff --git a/libcbor/.footprint b/libcbor/.footprint new file mode 100644 index 000000000..c1b628a6a --- /dev/null +++ b/libcbor/.footprint @@ -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 diff --git a/libcbor/.signature b/libcbor/.signature new file mode 100644 index 000000000..608db3301 --- /dev/null +++ b/libcbor/.signature @@ -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 diff --git a/libcbor/Pkgfile b/libcbor/Pkgfile new file mode 100644 index 000000000..bf4b78f5d --- /dev/null +++ b/libcbor/Pkgfile @@ -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 +}