void-packages/srcpkgs/box2d/template

30 lines
791 B
Bash

# Template file for 'box2d'
pkgname=box2d
version=2.4.1
revision=1
build_style=cmake
configure_args="-DBOX2D_BUILD_TESTBED=OFF -DBOX2D_BUILD_UNIT_TESTS=OFF
-DBUILD_SHARED_LIBS=ON"
makedepends="libX11-devel"
short_desc="2D physics engine for games"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="MIT"
homepage="https://github.com/erincatto/box2d"
# Use this distfiles until next release
distfiles="https://dev-www.libreoffice.org/src/box2d-${version}.tar.gz"
checksum=d6b4650ff897ee1ead27cf77a5933ea197cbeef6705638dd181adc2e816b23c2
post_install() {
vlicense LICENSE
}
box2d-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove "usr/lib/*.so"
}
}