contrib/sdl2_net/Pkgfile

25 lines
696 B
Plaintext
Raw Normal View History

2019-04-13 10:41:04 +02:00
# Description: A cross-platform networking library for SDL2.
2023-10-15 13:48:57 +02:00
# URL: https://www.github.com/libsdl-org/SDL_net/
# Maintainer: John McQuah, jmcquah at disroot dot org
2019-04-13 10:41:04 +02:00
# Depends on: libsdl2
name=sdl2_net
2022-08-20 18:17:51 +02:00
version=2.2.0
2023-10-15 13:48:57 +02:00
_commit=6d9b64c438b3f60f08ea5c43d678f2beaf10ea70
release=3
source=(https://www.github.com/libsdl-org/SDL_net/archive/$_commit/$name-$version.tar.gz)
2019-04-13 10:41:04 +02:00
build() {
2023-10-15 13:48:57 +02:00
cmake -S SDL_net-$_commit -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS"
2023-10-15 13:48:57 +02:00
ninja -C build -j ${JOBS:-1}
DESTDIR=$PKG ninja -C build install
2023-10-15 13:48:57 +02:00
# delete installed license.txt
rm -rf $PKG/usr/share
2019-04-13 10:41:04 +02:00
}