aboutsummaryrefslogtreecommitdiffstats
path: root/community/alembic/APKBUILD
blob: b36bec461f6e7815285efa0a6ff36a46d9bcc19f (plain) (blame)
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
# Contributor: Damian Kurek <starfire24680@gmail.com>
# Maintainer: Damian Kurek <starfire24680@gmail.com>
pkgname=alembic
pkgver=1.8.3
pkgrel=0
pkgdesc="Open framework for storing and sharing scene data"
url="https://www.alembic.io/"
arch="all !s390x !mips64" # alembic does not support big-endian, which s390x uses
license="BSD-3-Clause"
makedepends="openexr-dev hdf5-dev zlib-dev cmake boost-dev"
subpackages="$pkgname-dev $pkgname-libs"
source="$pkgname-$pkgver.tar.gz::https://github.com/alembic/alembic/archive/$pkgver.tar.gz"

build() {
	CXXFLAGS="$CXXFLAGS -flto -fno-ipa-cp"
	cmake -B build \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=None \
		-DUSE_HDF5=ON
	cmake --build build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
0049c72d93e66e12d704d27e7ba36cd9c718667f2ce4f7baa1bee1613ed88ba53abea98f457e14f7f2144cb353810a4108d26c7dd1a1543ec2af576272f19036  alembic-1.8.3.tar.gz
"