void-packages/srcpkgs/SDL2_image/template

30 lines
910 B
Bash

# Template file for 'SDL2_image'
pkgname=SDL2_image
version=2.8.2
revision=1
build_style=cmake
hostmakedepends="pkg-config"
makedepends="SDL2-devel libjpeg-turbo-devel libpng-devel libwebp-devel
tiff-devel zlib-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/SDL2/CHANGES.txt"
distfiles="http://www.libsdl.org/projects/SDL_image/release/SDL2_image-${version}.tar.gz"
checksum=8f486bbfbcf8464dd58c9e5d93394ab0255ce68b51c5a966a918244820a76ddc
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"
}
}