diff options
author | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
---|---|---|
committer | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
commit | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/external_dependencies/cpr/package-build | |
parent | 537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff) | |
download | winamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz |
Initial community commit
Diffstat (limited to 'Src/external_dependencies/cpr/package-build')
9 files changed, 148 insertions, 0 deletions
diff --git a/Src/external_dependencies/cpr/package-build/build-package.sh b/Src/external_dependencies/cpr/package-build/build-package.sh new file mode 100644 index 00000000..eef22da9 --- /dev/null +++ b/Src/external_dependencies/cpr/package-build/build-package.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +SRC_DIR=$1 + +LIB='libcpr' + +LIB_DIR="${LIB}_${VERSION}" +DEBIAN_DIR="${LIB_DIR}/debian" + +ARCHIVE_NAME="$LIB_DIR.orig.tar.gz" + +echo -e "Preparing tar archive and directory\n" +cp -r $SRC_DIR $LIB_DIR + +tar --exclude-vcs -czf $ARCHIVE_NAME $LIB_DIR +tar -xzf $ARCHIVE_NAME + +cd $LIB_DIR + +echo -e "\n\nCopying prepared debian files to directory\n" +mkdir debian +cp -r package-build/debian-libcpr/* debian/ +sed -i "s/\%VERSION/$VERSION/g" debian/changelog +sed -i "s/\%DATE/$(date -R)/g" debian/changelog + +echo -e "\n\nCalling debuild\n" +debuild diff --git a/Src/external_dependencies/cpr/package-build/debian-libcpr/README.Debian b/Src/external_dependencies/cpr/package-build/debian-libcpr/README.Debian new file mode 100644 index 00000000..e159461a --- /dev/null +++ b/Src/external_dependencies/cpr/package-build/debian-libcpr/README.Debian @@ -0,0 +1,5 @@ +libcpr for Debian + +A package of the libcpr library. + + -- Philip Saendig <philip.saendig@gmail.com> Tue, 24 May 2022 10:37:24 +0200 diff --git a/Src/external_dependencies/cpr/package-build/debian-libcpr/changelog b/Src/external_dependencies/cpr/package-build/debian-libcpr/changelog new file mode 100644 index 00000000..dbe84a94 --- /dev/null +++ b/Src/external_dependencies/cpr/package-build/debian-libcpr/changelog @@ -0,0 +1,6 @@ +libcpr (%VERSION-1) UNRELEASED; urgency=low + + [ Philip Saendig ] + * First package of libcpr %VERSION for debian. + + -- Philip Saendig <deb@libcpr.org> %DATE diff --git a/Src/external_dependencies/cpr/package-build/debian-libcpr/control b/Src/external_dependencies/cpr/package-build/debian-libcpr/control new file mode 100644 index 00000000..e4526b1c --- /dev/null +++ b/Src/external_dependencies/cpr/package-build/debian-libcpr/control @@ -0,0 +1,39 @@ +Source: libcpr +Section: libs +Priority: optional +Maintainer: Philip Saendig <philip.saendig@gmail.com> +Build-Depends: + debhelper-compat (= 12), + cmake, + libcurl4-openssl-dev, + libssl-dev, +Standards-Version: 4.5.0 +Homepage: https://github.com/libcpr/cpr + +Package: libcpr-dev +Architecture: any +Multi-Arch: same +Pre-Depends: ${misc:Pre-Depends} +Depends: ${misc:Depends}, ${shlibs:Depends}, libcpr1 +Description: C++ wrapper around the libcurl library - development kit + This package contains the header files and development + libraries of cpr, Curl for People. + . + The project is inspried by the Python Request project. + Using the more expressive language facilities of C++11, + it captures the essence of making network calls into a + few concise idioms. + +Package: libcpr1 +Architecture: any +Multi-Arch: same +Pre-Depends: ${misc:Pre-Depends} +Depends: ${misc:Depends}, ${shlibs:Depends}, +Description: C++ wrapper around the libcurl library - runtime library + This package contains the runtime, shared library of cpr, + Curl for People. + . + The project is inspried by the Python Request project. + Using the more expressive language facilities of C++11, + it captures the essence of making network calls into a + few concise idioms. diff --git a/Src/external_dependencies/cpr/package-build/debian-libcpr/copyright b/Src/external_dependencies/cpr/package-build/debian-libcpr/copyright new file mode 100644 index 00000000..33b7ffc2 --- /dev/null +++ b/Src/external_dependencies/cpr/package-build/debian-libcpr/copyright @@ -0,0 +1,52 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: libcpr +Source: https://github.com/libcpr/cpr + +Files: .clang-format + .clang-tidy + .github/* + CMakeLists.txt + CODE_OF_CONDUCT.md + CONTRIBUTING.md + CppCheckSuppressions.txt + README.md + cmake/* + cpr-config.cmake + cpr/* + include/* + nuget/* + package-build/* + debian/* +Copyright: 2017-2021 Huu Nguyen + 2022 libcpr and many other contributors +License: Expat + MIT License + . + Copyright (c) 2017-2021 Huu Nguyen + Copyright (c) 2022 libcpr and many other contributors + . + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +Files: test/* +Copyright: 2022 libcpr and many other contributors +License: GPL-3 + On Debian systems, the full text of the GNU General Public + License version 3 can be found in the file + `/usr/share/common-licenses/GPL-3'. + diff --git a/Src/external_dependencies/cpr/package-build/debian-libcpr/libcpr-dev.install b/Src/external_dependencies/cpr/package-build/debian-libcpr/libcpr-dev.install new file mode 100644 index 00000000..bb722673 --- /dev/null +++ b/Src/external_dependencies/cpr/package-build/debian-libcpr/libcpr-dev.install @@ -0,0 +1,3 @@ +usr/include +usr/lib/*/*.so +usr/lib/*/cmake diff --git a/Src/external_dependencies/cpr/package-build/debian-libcpr/libcpr1.install b/Src/external_dependencies/cpr/package-build/debian-libcpr/libcpr1.install new file mode 100644 index 00000000..3de3b10a --- /dev/null +++ b/Src/external_dependencies/cpr/package-build/debian-libcpr/libcpr1.install @@ -0,0 +1 @@ +usr/lib/*/*.so.* diff --git a/Src/external_dependencies/cpr/package-build/debian-libcpr/rules b/Src/external_dependencies/cpr/package-build/debian-libcpr/rules new file mode 100644 index 00000000..11b4eb1c --- /dev/null +++ b/Src/external_dependencies/cpr/package-build/debian-libcpr/rules @@ -0,0 +1,14 @@ +#!/usr/bin/make -f +export DH_VERBOSE = 1 +export DEB_BUILD_MAINT_OPTIONS = hardening=+all +export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + +%: + dh $@ + +override_dh_auto_configure: + dh_auto_configure -- \ + -DCMAKE_LIBRARY_ARCHITECTURE="$(DEB_TARGET_MULTIARCH)" -DCMAKE_BUILD_TYPE=Release \ + -DCPR_USE_SYSTEM_CURL=ON -DCURL_ZLIB=OFF -DBUILD_SHARED_LIBS=ON + diff --git a/Src/external_dependencies/cpr/package-build/debian-libcpr/source/format b/Src/external_dependencies/cpr/package-build/debian-libcpr/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/Src/external_dependencies/cpr/package-build/debian-libcpr/source/format @@ -0,0 +1 @@ +3.0 (quilt) |