From 2bee80f21d789dd9ebb9a1b84f685805e9b3cb4c Mon Sep 17 00:00:00 2001 From: Daniel Martinez Date: Tue, 13 Feb 2024 12:24:57 -0500 Subject: [PATCH] New package: ROCm-SMI-6.0.2 --- srcpkgs/ROCm-SMI-devel | 1 + .../patches/0001-cmake-system-processor.patch | 13 ++++++++++++ srcpkgs/ROCm-SMI/template | 21 +++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 120000 srcpkgs/ROCm-SMI-devel create mode 100644 srcpkgs/ROCm-SMI/patches/0001-cmake-system-processor.patch create mode 100644 srcpkgs/ROCm-SMI/template diff --git a/srcpkgs/ROCm-SMI-devel b/srcpkgs/ROCm-SMI-devel new file mode 120000 index 00000000000000..ca9824f034d928 --- /dev/null +++ b/srcpkgs/ROCm-SMI-devel @@ -0,0 +1 @@ +ROCm-SMI \ No newline at end of file diff --git a/srcpkgs/ROCm-SMI/patches/0001-cmake-system-processor.patch b/srcpkgs/ROCm-SMI/patches/0001-cmake-system-processor.patch new file mode 100644 index 00000000000000..db496a5abcdc0b --- /dev/null +++ b/srcpkgs/ROCm-SMI/patches/0001-cmake-system-processor.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b3eff5d..defc6b2 100755 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -76,7 +76,7 @@ endif() + ## Compiler flags + set(CMAKE_CXX_FLAGS + "${CMAKE_CXX_FLAGS} -Wall -Wextra -fno-rtti") +-if (${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64") ++if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64") + set(CMAKE_CXX_FLAGS + "${CMAKE_CXX_FLAGS} -m64 -msse -msse2") + endif() diff --git a/srcpkgs/ROCm-SMI/template b/srcpkgs/ROCm-SMI/template new file mode 100644 index 00000000000000..6d4a4af1c2ae5e --- /dev/null +++ b/srcpkgs/ROCm-SMI/template @@ -0,0 +1,21 @@ +# Template file for 'ROCm-SMI' +pkgname=ROCm-SMI +version=6.0.2 +revision=1 +build_style=cmake +short_desc="ROCm System Management Interface" +maintainer="Daniel Martinez " +license="NCSA" +homepage="https://github.com/ROCm/rocm_smi_lib" +changelog="https://raw.githubusercontent.com/ROCm/rocm_smi_lib/rocm-${version}/CHANGELOG.md" +distfiles="https://github.com/ROCm/rocm_smi_lib/archive/refs/tags/rocm-${version}.tar.gz" +checksum=61e755d710ff38425df3d262d1ad4c510d52d3c64e3fe15140c2575eba316949 + +ROCm-SMI-devel_package() { + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/cmake + vmove "usr/lib/*.so" + } +}