aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openexr/APKBUILD
blob: 603a163d280eb8119adc057dd2b6a246bea62b0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Contributor:
# Maintainer:
pkgname=openexr
pkgver=2.1.0
pkgrel=0
pkgdesc="An high dynamic-range image file format library"
url="http://www.openexr.com/"
arch="all"
license="BSD"
depends=
depends_dev="ilmbase-dev zlib-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://download.savannah.nongnu.org/releases/openexr/${pkgname}-${pkgver}.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
	-mandir=/usr/share/man \
	|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -Dm644 LICENSE \
                "$pkgdir"/usr/share/licenses/$pkgname/LICENSE || return 1
	find "$pkgdir" -name '*.la' -delete
}

md5sums="33735d37d2ee01c6d8fbd0df94fb8b43  openexr-2.1.0.tar.gz"
sha256sums="54486b454073c1dcb5ae9892cf0f730ffefe62f38176325281505093fd218a14  openexr-2.1.0.tar.gz"
sha512sums="d69924331c3392b8063229391414bb90f16ce317c76cfffe5fe0fcbb25e576f6ace8320b51c2a9987fee912cedd8e69116d4b49ba716b4a5f011131a81815403  openexr-2.1.0.tar.gz"