APKBUILD 1.63 KB
Newer Older
Will Jordan's avatar
Will Jordan committed
1
2
3
# Contributor: Will Jordan <will.jordan@gmail.com>
# Maintainer: Will Jordan <will.jordan@gmail.com>
pkgname=vips
Leo's avatar
Leo committed
4
pkgver=8.11.2
5
pkgrel=1
Leo's avatar
Leo committed
6
pkgdesc="fast image processing library with low memory needs"
7
url="https://libvips.github.io/libvips/"
8
# ppc64le blocked by failing test: test_seq.sh
9
arch="all !ppc64le"
10
license="LGPL-2.1-or-later"
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
makedepends="
	cfitsio-dev
	expat-dev
	fftw-dev
	giflib-dev
	glib-dev
	gobject-introspection-dev
	lcms2-dev
	libexif-dev
	libheif-dev
	libimagequant-dev
	libjpeg-turbo-dev
	libpng-dev
	libwebp-dev
	openexr-dev
	openjpeg-dev
	orc-dev
	pango-dev
	poppler-dev
	tiff-dev
	"
32
checkdepends="bc"
33
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-poppler $pkgname-tools"
Leo's avatar
Leo committed
34
source="https://github.com/libvips/libvips/releases/download/v$pkgver/vips-$pkgver.tar.gz"
Will Jordan's avatar
Will Jordan committed
35

36
37
38
39
40
case "$CARCH" in
	s390x|riscv64|mips64) ;;
	*) makedepends="$makedepends librsvg-dev" ;;
esac

J0WI's avatar
J0WI committed
41
42
43
44
45
46
# secfixes:
#   8.9.0-r0:
#     - CVE-2020-20739
#   8.8.2-r0:
#     - CVE-2019-17534

Will Jordan's avatar
Will Jordan committed
47
48
49
50
51
52
53
54
55
56
build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-debug=no \
		--without-gsf \
		--disable-static \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
Leo's avatar
Leo committed
57
58
		--docdir=/usr/share/doc \
		--enable-introspection
59
	make
Will Jordan's avatar
Will Jordan committed
60
61
}

62
63
64
65
check() {
	make check
}

Will Jordan's avatar
Will Jordan committed
66
package() {
67
	make DESTDIR="$pkgdir" install
Will Jordan's avatar
Will Jordan committed
68
69
70
71
}

tools() {
	pkgdesc="Command-line tools for $pkgname"
72
73

	amove usr/bin
Will Jordan's avatar
Will Jordan committed
74
75
}

76
77
78
79
80
81
poppler() {
	pkgdesc="Poppler support for $pkgname"

	amove usr/lib/vips-modules-${pkgver%.*}/vips-poppler.so
}

Leo's avatar
Leo committed
82
sha512sums="
Leo's avatar
Leo committed
83
2212074a1e2fc9b18af977c32460b8f35fb3476ff302c7b05fa696c2e77d80c5beba5a3d9006a4dd27bbe00ce253518dff0e50b28098e72b516f754fffb4eae9  vips-8.11.2.tar.gz
Leo's avatar
Leo committed
84
"