# Template file for 'SDL2_net'
pkgname=SDL2_net
version=2.4.0
revision=1
build_style=cmake
configure_args="-DSDL2NET_SAMPLES=OFF"
hostmakedepends="pkg-config"
makedepends="SDL2-devel"
short_desc="Networking library (SDL 2.x)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Zlib"
homepage="https://github.com/libsdl-org/SDL_net"
changelog="https://github.com/libsdl-org/SDL_net/raw/SDL2/CHANGES.txt"
distfiles="https://www.libsdl.org/projects/SDL_net/release/${pkgname}-${version}.tar.gz"
checksum=9cbca2527feb3f1a622d48ba65cc7dee9b1e3f2c55ceafb7d7720bb058aafb30

post_install() {
	vlicense LICENSE.txt
}

SDL2_net-devel_package() {
	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/cmake
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
	}
}
