void-packages/srcpkgs/SDL2_image/template

32 lines
1.0 KiB
Bash

# Template file for 'SDL2_image'
pkgname=SDL2_image
version=2.6.2
revision=1
build_style=gnu-configure
configure_args="--disable-static --disable-jpg-shared --disable-png-shared
--disable-stb-image --disable-tif-shared --disable-jxl-shared
--disable-webp-shared"
hostmakedepends="pkg-config"
makedepends="libpng-devel tiff-devel SDL2-devel libwebp-devel"
short_desc="Load images as SDL surfaces (SDL 2.x)"
maintainer="André Cerqueira <acerqueira021@gmail.com>"
license="Zlib"
homepage="https://github.com/libsdl-org/SDL_image"
changelog="https://raw.githubusercontent.com/libsdl-org/SDL_image/main/CHANGES.txt"
distfiles="http://www.libsdl.org/projects/SDL_image/release/${pkgname}-${version}.tar.gz"
checksum=48355fb4d8d00bac639cd1c4f4a7661c4afef2c212af60b340e06b7059814777
post_install() {
vlicense LICENSE.txt LICENSE
}
SDL2_image-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}