# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=tweeny
pkgver=3.2.0
pkgrel=1
pkgdesc="Modern C++ tweening library"
url="https://mobius3.github.io/tweeny"
arch="noarch"
license="MIT"
makedepends="cmake doxygen samurai"
subpackages="$pkgname-doc"
source="https://github.com/mobius3/tweeny/archive/v$pkgver/tweeny-v$pkgver.tar.gz"
options="!check" # no test suite

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DTWEENY_BUILD_DOCUMENTATION=ON
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
809b8250f7df6c3e9d27e9967c586d1ca4be29e3b551b57285da1060a6928c91e0afa6b3ef6b546cae48035383939f19d67889b632dd60a2fbb0a22aafaabe89  tweeny-v3.2.0.tar.gz
"
