mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 11:19:50 +03:00
testing/cpp-httplib: new aport
https://github.com/yhirose/cpp-httplib C++ header-only HTTP/HTTPS server and client library
This commit is contained in:
parent
2d6a14e6ae
commit
a0d158a17e
1 changed files with 33 additions and 0 deletions
33
testing/cpp-httplib/APKBUILD
Normal file
33
testing/cpp-httplib/APKBUILD
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
maintainer="fossdd <fossdd@pwned.life>"
|
||||||
|
pkgname=cpp-httplib
|
||||||
|
pkgver=0.22.0
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="C++ header-only HTTP/HTTPS server and client library"
|
||||||
|
url="https://github.com/yhirose/cpp-httplib"
|
||||||
|
arch="noarch"
|
||||||
|
license="MIT"
|
||||||
|
makedepends="cmake samurai"
|
||||||
|
subpackages="$pkgname-doc"
|
||||||
|
source="$pkgname-$pkgver.tar.gz::https://github.com/yhirose/cpp-httplib/archive/refs/tags/v$pkgver.tar.gz"
|
||||||
|
options="!check" # no tests
|
||||||
|
|
||||||
|
build() {
|
||||||
|
if [ "$CBUILD" != "$CHOST" ]; then
|
||||||
|
local crossopts="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
|
||||||
|
fi
|
||||||
|
cmake -B build \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||||
|
-DBUILD_SHARED_LIBS=ON \
|
||||||
|
-DCMAKE_BUILD_TYPE=None \
|
||||||
|
$crossopts
|
||||||
|
cmake --build build
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
DESTDIR="$pkgdir" cmake --install build
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
c355ab3814efce40759a3328b4e1079dc372d3cce8a841c42d22adb4eb228351f0602b5e82135c0bf69321fd5138a0052882ab801908ad4c32fa963d655a11d9 cpp-httplib-0.22.0.tar.gz
|
||||||
|
"
|
Loading…
Add table
Add a link
Reference in a new issue