blob: 42dbe4543ddb42a1dd3de2e1c3ad3c593547274b (
plain)
1 # Description: Wrapper for network functions
2 # URL: https://cwrap.org/socket_wrapper.html
3 # Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
4 # Depends on: cmake
5
6 name=socket_wrapper
7 version=1.2.5
8 release=1
9 source=(https://ftp.samba.org/pub/cwrap/$name-$version.tar.gz)
10
11 build() {
12 cmake -S $name-$version -B build\
13 -D CMAKE_BUILD_TYPE=Release \
14 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
15 -D CMAKE_INSTALL_PREFIX=/usr \
16 -D CMAKE_INSTALL_LIBDIR=lib
17 cmake --build build
18 DESTDIR=$PKG cmake --install build
19 }
|