summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDarjan Krijan2019-10-21 09:44:05 +0200
committerDarjan Krijan2019-10-21 09:44:05 +0200
commite5a9a45fafcf8a7ca59b24f41e09e568d4ec4fb5 (patch)
treefce0a80e8f6d130618071313ebbba75c24d0b7db /PKGBUILD
parent037db13d7227c6d98361df84e78f3555f6619944 (diff)
downloadaur-e5a9a45fafcf8a7ca59b24f41e09e568d4ec4fb5.tar.gz
Removed amdlibm from aocc, modulefile updated
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD29
1 files changed, 17 insertions, 12 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 0428d25d7da2..25bfea59b05a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,9 @@
# Maintainer: Darjan Krijan (daren) <darjan_krijan@gmx.de>
-# Manual download of 'aocc-compiler-${pkgver}.tar' required from upstream
+# Manual download of '${pkgname}-compiler-${pkgver}.tar' required from upstream
pkgname=aocc
pkgver=2.0.0
-pkgrel=3
+pkgrel=4
pkgdesc="AMD Optimizing C/C++ Compiler"
arch=('x86_64')
license=('custom')
@@ -14,19 +14,24 @@ depends=('ncurses5-compat-libs' 'env-modules')
install=aocc.install
md5sums=("09d64260794b40901c77504317fbd0ad" "SKIP")
-package() {
- mkdir -p ${pkgdir}/opt/aocc
+aocc_prefix=/opt/aocc
- cp -r ${srcdir}/aocc-compiler-${pkgver}/* ${pkgdir}/opt/aocc
+package() {
+ prefix=${pkgdir}${aocc_prefix}
+ mkdir -p ${prefix}
- # modulefile
- cp modulefile ${pkgdir}/opt/aocc
- mkdir -p ${pkgdir}${MODULESHOME}/modulefiles/
- ln -s /opt/aocc/modulefile ${pkgdir}${MODULESHOME}/modulefiles/aocc
+ # Cleanup
+ rm ${srcdir}/${pkgname}-compiler-${pkgver}/install.sh
+ # amdlibm seems to be an outdated version, use recent one from from aocl
+ find ${srcdir}/${pkgname}-compiler-${pkgver}/lib/ -name "*amdlibm*" -delete
- # Not needed
- rm ${pkgdir}/opt/aocc/install.sh
+ cp -r ${srcdir}/${pkgname}-compiler-${pkgver}/* ${prefix}
# aocc symlink
- ln -s /opt/aocc/bin/clang ${pkgdir}/opt/aocc/bin/aocc
+ ln -s ${aocc_prefix}/bin/clang ${prefix}/bin/${pkgname}
+
+ # modulefile
+ cp ${srcdir}/modulefile ${prefix}
+ mkdir -p ${pkgdir}${MODULESHOME}/modulefiles/
+ ln -s ${aocc_prefix}/modulefile ${pkgdir}${MODULESHOME}/modulefiles/${pkgname}
}