Skip to content

Commit

Permalink
Add backport/ode (#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
Taka-Kazu authored Jan 29, 2024
1 parent d560fbf commit a31647e
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions backports/ode/APKBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Contributor: Kazuki Takahashi <[email protected]>
# Maintainer:
pkgname=ode
pkgver=0.16.4
pkgrel=0
pkgdesc="A free, industrial quality library for simulating articulated rigid body dynamics."
url="https://www.ode.org/"
arch="all"
license="BSD-3-Clause LGPL-2.1-or-later"
depends=""
makedepends="cmake libx11-dev mesa-dev glu-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://bitbucket.org/odedevs/ode/downloads/ode-$pkgver.tar.gz"

builddir="$srcdir/$pkgname-$pkgver"

build() {
cd "$builddir"
mkdir -p build && cd build
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
make
}

check() {
cd "$builddir"/build
make test
}

package() {
cd "$builddir"/build
make DESTDIR="$pkgdir" install

install -Dm 0644 "$builddir"/COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
install -Dm 0644 "$builddir"/LICENSE.TXT "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.TXT
install -Dm 0644 "$builddir"/LICENSE-BSD.TXT "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-BSD.TXT
}

sha512sums="338e19fc1a0a260ba83d790198fd8bb63245d8c5ef9a9905a012d851ee6562749517ae3210efe0bf0d4d29b50e9bbbe6b7ac900cde52a68bef1950fce54658d8 ode-0.16.4.tar.gz"

0 comments on commit a31647e

Please sign in to comment.