aboutsummaryrefslogtreecommitdiffstats
path: root/community/alembic/APKBUILD
blob: cdff16156cd98b56567974382ebed5a1291a3319 (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
# Contributor: Damian Kurek <starfire24680@gmail.com>
# Maintainer: Damian Kurek <starfire24680@gmail.com>
pkgname=alembic
pkgver=1.8.0
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
	make -C build
}

check() {
	make -C build test
}

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

sha512sums="23fc881863741f7fd081342f5c53c1ec3d00ab300ba8cd10e4a659ee820a9ed1244cf7cf2fd40482f6be32b9d7df44128363246e942bd03c802f3a2a81533b57  alembic-1.8.0.tar.gz"