# Template file for 'SDL3_image'
pkgname=SDL3_image
version=3.4.4
revision=1
build_style=cmake
hostmakedepends="pkg-config"
makedepends="SDL3-devel libavif-devel libjpeg-turbo-devel libpng-devel libwebp-devel
 tiff-devel zlib-devel"
short_desc="Load images as SDL surfaces (SDL 3.x)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Zlib"
homepage="https://github.com/libsdl-org/SDL_image"
changelog="https://raw.githubusercontent.com/libsdl-org/SDL_image/CHANGES.txt"
distfiles="https://github.com/libsdl-org/SDL_image/releases/download/release-${version}/SDL3_image-${version}.tar.gz"
checksum=29751304a13d25ac513f24305fa25b06a6edd9607718c90129b8350d35fc5573

post_install() {
	vlicense LICENSE.txt LICENSE
}

SDL3_image-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"
	}
}
