From 0d36ffad29e37effeb297f78de76e0e0b58d8908 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Fri, 8 May 2020 20:43:45 +0200 Subject: [PATCH] New package: libvips-8.9.2 --- common/shlibs | 2 ++ srcpkgs/libvips | 1 + srcpkgs/libvips-devel | 1 + srcpkgs/libvips-doc | 1 + srcpkgs/vips/template | 77 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 82 insertions(+) create mode 120000 srcpkgs/libvips create mode 120000 srcpkgs/libvips-devel create mode 120000 srcpkgs/libvips-doc create mode 100644 srcpkgs/vips/template diff --git a/common/shlibs b/common/shlibs index 85807a53c6..22e35e2688 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3878,3 +3878,5 @@ libhidrd_strm.so.0 hidrd-0.2.0_1 libhidrd_fmt.so.0 hidrd-0.2.0_1 libjcat.so.1 libjcat-0.1.2_1 libmatio.so.9 matio-1.5.17_2 +libvips.so.42 libvips-8.9.2_1 +libvips-cpp.so.42 libvips-8.9.2_1 diff --git a/srcpkgs/libvips b/srcpkgs/libvips new file mode 120000 index 0000000000..6faa116eb8 --- /dev/null +++ b/srcpkgs/libvips @@ -0,0 +1 @@ +vips \ No newline at end of file diff --git a/srcpkgs/libvips-devel b/srcpkgs/libvips-devel new file mode 120000 index 0000000000..6faa116eb8 --- /dev/null +++ b/srcpkgs/libvips-devel @@ -0,0 +1 @@ +vips \ No newline at end of file diff --git a/srcpkgs/libvips-doc b/srcpkgs/libvips-doc new file mode 120000 index 0000000000..6faa116eb8 --- /dev/null +++ b/srcpkgs/libvips-doc @@ -0,0 +1 @@ +vips \ No newline at end of file diff --git a/srcpkgs/vips/template b/srcpkgs/vips/template new file mode 100644 index 0000000000..5fc54fbbc3 --- /dev/null +++ b/srcpkgs/vips/template @@ -0,0 +1,77 @@ +# Template file for 'vips' +pkgname=vips +version=8.9.2 +revision=1 +build_style=gnu-configure +build_helper=gir +configure_args="--enable-introspection=$(vopt_if gir yes no)" +hostmakedepends="pkgconf" +makedepends=" + $(vopt_if hdf5 hdf5-devel) + $(vopt_if hdf5 matio-devel) + cfitsio-devel + expat-devel + fftw-devel + giflib-devel + glib-devel + lcms2-devel + libexif-devel + libgsf-devel + libheif-devel + libimagequant-devel + libjpeg-turbo-devel + libopenexr-devel + libpng-devel + librsvg-devel + libwebp-devel + orc-devel + poppler-glib-devel + tiff-devel +" +short_desc="Fast image processing with low memory needs" +maintainer="Isaac Freund " +license="LGPL-2.1-or-later" +homepage="https://libvips.github.io/libvips/" +distfiles="https://github.com/libvips/libvips/releases/download/v${version}/vips-${version}.tar.gz" +checksum=ae8491b1156cd2eb9cbbaa2fd6caa1dc9ed3ded0b70443d28cd7fea798ab2a27 +python_version=3 + +build_options="gir hdf5" +build_options_default="gir" +desc_option_hdf5="HDF5 support" + +if [ -z "$CROSS_BUILD" ]; then + build_options_default+=" hdf5" +fi + +libvips_package() { + short_desc+=" - library" + pkg_install() { + vmove "usr/lib/*.so.*" + if [ "$build_option_gir" ]; then + vmove usr/lib/girepository-1.0 + fi + } +} + +libvips-devel_package() { + depends="${makedepends} ${sourcepkg}-${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + if [ "$build_option_gir" ]; then + vmove usr/share/gir-1.0 + fi + } +} + +libvips-doc_package() { + archs=noarch + short_desc+=" - documentation" + pkg_install() { + vmove usr/share/gtk-doc + } +}