milis/talimatname/genel/l/libwebsockets/talimat

22 lines
589 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: Websocket istemcileri ve sunucuları için C kütüphanesi
# URL: https://libwebsockets.org
# Paketçi: Cihan Alkan
# Gerekler: cmake
# Grup: kütüphane
isim=libwebsockets
surum=2.4.1
devir=1
kaynak=(https://github.com/warmcat/libwebsockets/archive/v$surum.tar.gz::$isim-$surum.tar.gz)
derle() {
cd "$isim-$surum"
mkdir build && cd build
# http2 support -DLWS_WITH_HTTP2=1
cmake -D CMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
make
make DESTDIR="${PKG}" install
cd ..
install -Dm644 LICENSE "${PKG}/usr/share/licenses/${isim}/LICENSE"
}