mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-27 16:32:15 +01:00
34 lines
947 B
Plaintext
34 lines
947 B
Plaintext
maintainer="Achill Gilgenast <achill@achill.org>"
|
|
pkgname=cpp-httplib
|
|
pkgver=0.36.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="
|
|
e7d87596c919296ccb07f0b2b8efd286c8b872994d2a83c039db83c8a0620842cca0b31e54ff60e8d8c9b0c1c3c2d9b510ad7a58dd3553370aea01adebe0e211 cpp-httplib-0.36.0.tar.gz
|
|
"
|