1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 03:09:51 +03:00
aports/testing/cpp-httplib/APKBUILD
fossdd a0d158a17e testing/cpp-httplib: new aport
https://github.com/yhirose/cpp-httplib
C++ header-only HTTP/HTTPS server and client library
2025-07-07 18:04:39 +02:00

33 lines
937 B
Text

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
"