# Template file for 'Cendric'
pkgname=Cendric
version=1.0.4
revision=1
wrksrc="Cendric2-${version}"
build_style=cmake
configure_args="-DUSE_SYSTEM_SFML=on -DCENDRIC_EXTERNAL_DOCUMENT_FOLDER=on
 -DUSE_SYSTEM_PATHS=on"
hostmakedepends="dos2unix"
makedepends="SFML-devel"
depends="Cendric-data"
short_desc="RPG Platformer"
maintainer="John <johnz@posteo.net>"
license="MIT, CC-BY-NC-4.0"
homepage="http://cendric.ch/"
distfiles="https://github.com/tizian/Cendric2/archive/${version}.tar.gz"
checksum=cf43aeee25189a0c3ef0ecefd1b169ce37c62c3b11f0d6cfc30a9b3645d42dbe

post_extract() {
	dos2unix CMakeLists.txt
}

post_install() {
	vlicense LICENSES/CC-BY-NC-SA-4.0.txt CC-BY-NC-SA-4.0
	vlicense LICENSES/MIT.txt MIT
}

Cendric-data_package() {
	short_desc+=" - data files"
	noarch=yes
	pkg_install() {
		vmove usr/share
	}
}
