void-packages/srcpkgs/box2d/template

32 lines
912 B
Bash
Raw Permalink Normal View History

2024-07-04 07:26:29 +02:00
# Template file for 'box2d'
2024-08-25 03:30:38 +02:00
# 3.x is C, libreoffice doesn't work
2024-07-01 14:01:50 +02:00
pkgname=box2d
2024-08-25 03:30:38 +02:00
version=2.4.2
2024-07-01 14:01:50 +02:00
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"
2024-08-25 03:30:38 +02:00
distfiles="https://github.com/erincatto/box2d/archive/refs/tags/v${version}.tar.gz"
checksum=85b9b104d256c985e6e244b4227d447897fac429071cc114e5cc819dae848852
2024-07-01 14:01:50 +02:00
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"
}
}