From a50461b6a5acddaa55e4ad0828ddeabcb21411db Mon Sep 17 00:00:00 2001 From: Piotr Danecki Date: Mon, 3 Feb 2025 19:20:15 +0100 Subject: [PATCH] New package: SDL3_image Signed-off-by: Piotr Danecki --- common/shlibs | 1 + srcpkgs/SDL3_image-devel | 1 + srcpkgs/SDL3_image/template | 30 ++++++++++++++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 120000 srcpkgs/SDL3_image-devel create mode 100644 srcpkgs/SDL3_image/template diff --git a/common/shlibs b/common/shlibs index 998affa4304c10..977a75aedbe1e9 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4538,3 +4538,4 @@ libopencore-amrwb.so.0 opencore-amr-0.1.6_1 libilbc.so.3 libilbc-3.0.4_1 libmaliit-plugins.so.2 maliit-keyboard-2.3.1_1 libSDL3.so.0 SDL3-3.2.2_1 +libSDL3_image.so.0 SDL3_image-3.2.0_1 diff --git a/srcpkgs/SDL3_image-devel b/srcpkgs/SDL3_image-devel new file mode 120000 index 00000000000000..78e4ac8ef0b735 --- /dev/null +++ b/srcpkgs/SDL3_image-devel @@ -0,0 +1 @@ +SDL3_image \ No newline at end of file diff --git a/srcpkgs/SDL3_image/template b/srcpkgs/SDL3_image/template new file mode 100644 index 00000000000000..13835928d1d9d6 --- /dev/null +++ b/srcpkgs/SDL3_image/template @@ -0,0 +1,30 @@ +# Template file for 'SDL3_image' +pkgname=SDL3_image +version=3.2.0 +revision=1 +build_style=cmake +configure_args="" +hostmakedepends="pkg-config" +makedepends="SDL3-devel libjpeg-turbo-devel libpng-devel libwebp-devel + tiff-devel zlib-devel" +short_desc="Load images as SDL surfaces (SDL 3.x)" +maintainer="Piotr Danecki " +license="Zlib" +homepage="https://github.com/libsdl-org/SDL_image" +distfiles="http://www.libsdl.org/projects/SDL_image/release/SDL3_image-${version}.tar.gz" +changelog="https://raw.githubusercontent.com/libsdl-org/SDL_image/refs/heads/main/CHANGES.txt" +checksum=1690baea71b2b4ded9895126cddbc03a1000b027d099a4fb4669c4d23d73b19f + +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/pkgconfig + vmove "usr/lib/*.so" + } +}