void-packages/srcpkgs/SDL2_image/template

30 lines
910 B
Bash

# Template file for 'SDL2_image'
pkgname=SDL2_image
version=2.6.3
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=931c9be5bf1d7c8fae9b7dc157828b7eee874e23c7f24b44ba7eff6b4836312c
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"
}
}