%global debug_package %{nil} %define __strip /bin/true %global dkp_linux_url https://pkg.devkitpro.org/packages/linux/x86_64 %global dkp_libs_url https://pkg.devkitpro.org/packages Name: devkitpro-gba Version: 0.5.4 Release: %autorelease Summary: Game Boy Advance SDK libraries for devkitPro License: Zlib URL: https://devkitpro.org ExclusiveArch: x86_64 Source0: %{dkp_libs_url}/libgba-%{version}-1-any.pkg.tar.zst Source1: %{dkp_libs_url}/libtonc-1.4.5-1-any.pkg.tar.zst Source2: %{dkp_libs_url}/libfat-gba-1.1.5-1-any.pkg.tar.xz Source3: %{dkp_libs_url}/maxmod-gba-1.0.15-1-any.pkg.tar.xz Source4: %{dkp_libs_url}/gba-cmake-1.0.2-1-any.pkg.tar.zst Source5: %{dkp_libs_url}/gba-pkg-config-0.28-4-any.pkg.tar.xz Source6: %{dkp_libs_url}/gba-examples-20240626-1-any.pkg.tar.zst Source10: %{dkp_linux_url}/gba-tools-1.2.0-1-x86_64.pkg.tar.xz AutoReqProv: no Requires: devkitarm %description Game Boy Advance homebrew development libraries including libgba, libtonc, libfat, and maxmod. %prep mkdir -p combined for src in %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} \ %{SOURCE5} %{SOURCE6} %{SOURCE10}; do tar xf "$src" -C combined \ --exclude='.PKGINFO' --exclude='.MTREE' \ --exclude='.INSTALL' --exclude='.BUILDINFO' done %install cp -a combined/opt %{buildroot}/opt %files /opt/devkitpro/libgba /opt/devkitpro/libtonc /opt/devkitpro/examples/gba /opt/devkitpro/cmake/GBA.cmake /opt/devkitpro/cmake/Platform/NintendoGBA.cmake /opt/devkitpro/portlibs/gba /opt/devkitpro/licenses/gba-tools /opt/devkitpro/tools/bin/gbafix /opt/devkitpro/tools/bin/gbalzss /opt/devkitpro/tools/bin/gbfs /opt/devkitpro/tools/bin/insgbfs /opt/devkitpro/tools/bin/lsgbfs /opt/devkitpro/tools/bin/ungbfs %changelog %autochangelog