# Template file for 'box2d' # 3.x is C, libreoffice doesn't work pkgname=box2d version=2.4.2 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 " 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" distfiles="https://github.com/erincatto/box2d/archive/refs/tags/v${version}.tar.gz" checksum=85b9b104d256c985e6e244b4227d447897fac429071cc114e5cc819dae848852 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" } }