diff --git a/backports/ode/APKBUILD b/backports/ode/APKBUILD new file mode 100644 index 000000000..0ad09f623 --- /dev/null +++ b/backports/ode/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Kazuki Takahashi +# 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"