blob: 09a10f12d6c6ffe4ef31489a5261f497fb952825 (
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
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=mujoco
pkgver=3.8.1
pkgrel=1
pkgdesc="Multi-Joint dynamics with Contact. A general purpose physics simulator."
arch=($CARCH)
url="https://www.mujoco.org"
license=('Apache-2.0')
depends=(
'glibc'
'libgcc'
'libstdc++'
)
makedepends=(
'cmake'
'glfw'
'git'
'libxcursor'
'libxi'
'libxinerama'
'libxrandr'
'ninja'
'mold'
)
source=("${pkgname}::git+https://github.com/deepmind/mujoco.git#tag=$pkgver")
sha256sums=('7ab4ef28af1fc2d2c4afd6612438c26851140ff6d97720ac7fa90e0807ff8574')
build() {
cd "${pkgname}"
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_C_FLAGS="-Wno-error=discarded-qualifiers" \
-DCMAKE_CXX_FLAGS="-Wno-error=discarded-qualifiers" \
-B build \
-G Ninja \
-Wno-dev
ninja -C build
}
package() {
DESTDIR="${pkgdir}" ninja -C "${srcdir}"/${pkgname}/build install
install -Dm0644 "${srcdir}/${pkgname}"/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|