blob: e67b0143de19ee62d848adc6fb6380adf7bbce80 (
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
|
# Contributor: Daniel Kirchner <daniel at ekpyron dot org>
# Maintainer: Davorin Učakar <davorin.ucakar@gmail.com>
pkgname=lib32-assimp
_basename=assimp
pkgver=5.2.5
pkgrel=1
pkgdesc='Library to import various well-known 3D model formats in an uniform manner'
url='http://www.assimp.org/'
arch=('x86_64')
license=('BSD')
depends=('lib32-gcc-libs' 'lib32-zlib' 'lib32-minizip')
makedepends=('cmake' 'ninja')
source=("https://github.com/assimp/assimp/archive/v${pkgver}.tar.gz"
'minizip-openfile.patch')
sha512sums=('ac0dc4243f9d1ff077966f0037187b4374075ac97e75e1a3cd6bdc1caf5f8e4d40953d9a8a316480969c09524d87daa9d3ed75e6ac6f037dd5b1c5f25fce3afb'
'76cbabac99a22597209c9f5e6f266f8b0d318bdad3e681ba851d406630d9fda2a7c1a36a6a374eb6d2a7c751e1e6a60e1d4672ae83b5c25beed943c5cb2dead5')
build() {
cd "${_basename}-${pkgver}"
cmake . \
-B build \
-G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_C_FLAGS="${CFLAGS/-march=x86_64} -march=i686 -m32" \
-D CMAKE_CXX_FLAGS="${CXXFLAGS/-march=x86_64} -march=i686 -m32" \
-D ASSIMP_BUILD_ASSIMP_TOOLS=OFF \
-D ASSIMP_BUILD_SAMPLES=OFF \
-D ASSIMP_BUILD_TESTS=OFF \
-D ASSIMP_WARNINGS_AS_ERRORS=OFF
ninja -C build
}
package() {
cd "${_basename}-${pkgver}"
DESTDIR="${pkgdir}" ninja -C build install
rm -rf "${pkgdir}/usr/include"
mv "${pkgdir}"/usr/lib{,32}
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|