Package Details: aocl-utils 5.0-2

Git Clone URL: https://aur.archlinux.org/aocl-utils.git (read-only, click to copy)
Package Base: aocl-utils
Description: AOCL-Utils provides a uniform interface to all the AOCL libraries to access the CPU features for AMD CPUs.
Upstream URL: https://github.com/amd/aocl-utils
Licenses: BSD
Submitter: huyz
Maintainer: jclds139 (AutoUpdateBot)
Last Packager: jclds139
Votes: 2
Popularity: 1.20
First Submitted: 2023-08-08 03:24 (UTC)
Last Updated: 2024-10-28 20:55 (UTC)

Latest Comments

ABHIRAMSHIBU commented on 2024-10-26 08:57 (UTC) (edited on 2024-10-26 11:46 (UTC) by ABHIRAMSHIBU)

Here is a patch to improve the current PKGBUILD

From 72f66030644ffeab7ffeea3d3a4176540127eebe Mon Sep 17 00:00:00 2001
From: Abhiram Shibu <abhiramshibu1998@gmail.com>
Date: Sat, 26 Oct 2024 14:20:39 +0530
Subject: [PATCH] PKGBUILD: Proper dependencies, use Ninja

Signed-off-by: Abhiram Shibu <abhiramshibu1998@gmail.com>
---
 .SRCINFO |  2 ++
 PKGBUILD | 13 +++++++------
 2 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO
index 26696cf..3de31e5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -6,6 +6,8 @@ pkgbase = aocl-utils
    arch = x86_64
    license = BSD
    makedepends = cmake
+   makedepends = ninja
+   makedepends = gcc
    source = aocl-utils.tar.gz::https://github.com/amd/aocl-utils/archive/refs/tags/5.0.tar.gz
    sha256sums = ee2e5d47f33a3f673b3b6fcb88a7ef1a28648f407485ad07b6e9bf1b86159c59

diff --git a/PKGBUILD b/PKGBUILD
index e0ad15f..3e96e54 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,20 +5,21 @@ pkgdesc="AOCL-Utils provides a uniform interface to all the AOCL libraries to ac
 arch=('x86_64')
 url="https://github.com/amd/aocl-utils"
 license=('BSD')
+options=("staticlibs")
 depends=()
-makedepends=('cmake')
+makedepends=('cmake' 'ninja' 'gcc')
 source=("${pkgname}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz")
 sha256sums=('ee2e5d47f33a3f673b3b6fcb88a7ef1a28648f407485ad07b6e9bf1b86159c59')

 build() {
     cd ${srcdir}/${pkgname}-${pkgver}
-    cmake -B build -DCMAKE_INSTALL_PREFIX=/usr
-
-    cd build
-    make
+    cmake -B build -DCMAKE_INSTALL_PREFIX=/usr -G Ninja
+    cmake --build build
 }

 package() {
     cd ${srcdir}/${pkgname}-${pkgver}/build
-    make DESTDIR=${pkgdir} install
+    DESTDIR=${pkgdir} ninja install
+    cp Library/libaoclutils.a ${pkgdir}/usr/lib
+    cp Library/libau_internal_core.a ${pkgdir}/usr/lib
 }
-- 
2.45.2

jclds139 commented on 2023-08-31 04:06 (UTC) (edited on 2023-08-31 18:02 (UTC) by jclds139)

This should either be a -bin package now or do the compilation from the upstream source code. I've made an example PKGBUILD to do the compilation locally. It's quick since it's such a small source code. https://gist.github.com/jclds139/0bb46c233b352a4f9886c5fa4d7e8d72