SUMMARY="Media assets for RetroArch"
DESCRIPTION="RetroArch is a frontend for emulators, game engines and media \
players. This package provides assets such as icons for the GUI."
HOMEPAGE="https://libretro.com/"
COPYRIGHT="2010-2021 The RetroArch Team"
LICENSE="CC-BY-4.0"
REVISION="1"
srcGitRev="9c22505bed22370d4b81d10429afc9e0d6cc11ff"
SOURCE_URI="https://github.com/libretro/retroarch-assets/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="c34b107325d966c67e68d3ed40571c8d4f6561b908ab92a968ad1b95fb1b22f4"
SOURCE_FILENAME="retroarch-assets-$portVersion.tar.gz"
SOURCE_DIR="retroarch-assets-$srcGitRev"

ARCHITECTURES="any"

PROVIDES="
	retroarch_assets = $portVersion
	"
REQUIRES="
	haiku
	"

INSTALL()
{
	retroarchDataDir="$dataDir/retroarch/assets/"
	mkdir -p "$retroarchDataDir"
	cp -ar * "$retroarchDataDir"
	cd "$retroarchDataDir"
	rm -rf src
	rm -f Makefile configure COPYING
	rm -f xmb/convert.sh xmb/NPMApng2PMApng.py
}
