%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-nds Version: 2.0.2 Release: %autorelease Summary: Nintendo DS SDK libraries for devkitPro License: Zlib URL: https://devkitpro.org ExclusiveArch: x86_64 Source0: %{dkp_libs_url}/libnds-%{version}-1-any.pkg.tar.zst Source1: %{dkp_libs_url}/dswifi-2.1.0-1-any.pkg.tar.zst Source2: %{dkp_libs_url}/libfat-nds-2.1.0-4-any.pkg.tar.zst Source3: %{dkp_libs_url}/maxmod-nds-2.1.0-2-any.pkg.tar.zst Source4: %{dkp_libs_url}/calico-1.2.0-1-any.pkg.tar.zst Source5: %{dkp_libs_url}/default-arm7-0.8.4-4-any.pkg.tar.zst Source6: %{dkp_libs_url}/nds-cmake-1.3.1-1-any.pkg.tar.zst Source7: %{dkp_libs_url}/nds-pkg-config-0.28-4-any.pkg.tar.xz Source8: %{dkp_libs_url}/nds-examples-20241110-1-any.pkg.tar.zst Source10: %{dkp_linux_url}/dstools-1.3.3-3-x86_64.pkg.tar.zst Source11: %{dkp_linux_url}/grit-0.10.0-1-x86_64.pkg.tar.zst Source12: %{dkp_linux_url}/mmutil-1.10.1-1-x86_64.pkg.tar.xz Source13: %{dkp_linux_url}/ndstool-2.3.1-1-x86_64.pkg.tar.zst AutoReqProv: no Requires: devkitarm %description Nintendo DS homebrew development libraries including libnds, dswifi, maxmod, calico, and build tools. %prep mkdir -p combined for src in %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} \ %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} \ %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13}; 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/libnds /opt/devkitpro/calico /opt/devkitpro/examples/nds /opt/devkitpro/cmake/NDS.cmake /opt/devkitpro/cmake/Platform/NintendoDS.cmake /opt/devkitpro/portlibs/nds /opt/devkitpro/licenses/dstools /opt/devkitpro/licenses/grit /opt/devkitpro/licenses/mmutil /opt/devkitpro/licenses/ndstool /opt/devkitpro/tools/bin/dlditool /opt/devkitpro/tools/bin/dslink /opt/devkitpro/tools/bin/nds_texcompress /opt/devkitpro/tools/bin/r4denc /opt/devkitpro/tools/bin/grit /opt/devkitpro/tools/bin/mmutil /opt/devkitpro/tools/bin/ndstool %changelog %autochangelog