blob: 029eebb65a6b6d5175966b209979699cb73fdfe9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#This is an unofficial script to build and install the AOCL-Cryptography library with AOCC for Arch Linux AUR.
pkgname=aocl-crypto-aocc
pkgaltname=aocl-crypto
pkgver=5.0
pkgrel=1
pkgdesc="AOCL-Cryptography is a library consisting of cryptographic optimized functions for Zen."
arch=('x86_64')
url="https://github.com/amd/aocl-crypto"
options=("staticlibs")
depends=("aocl-utils-aocc")
provides=("aocl-crypto")
conflicts=("aocl-crypto")
makedepends=('cmake' 'ninja' 'aocc' 'lsb-release')
source=("${pkgaltname}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('b15e609943f9977e13f2d5839195bb7411c843839a09f0ad47f78f57e8821c23')
build() {
cd ${srcdir}/${pkgaltname}-${pkgver}
source /opt/aocc/setenv_AOCC.sh
#FIXME: Enable Assembly
#FIXME: Enable Dynamic Compiler Picker
cmake -B build -DAOCL_COMPAT_LIBS=openssl -DALCP_DISABLE_ASSEMBLY=ON -DALCP_ENABLE_EXAMPLES=OFF -DCMAKE_INSTALL_PREFIX=/usr \
-DOPENSSL_INSTALL_DIR=/usr -DAOCL_UTILS_INSTALL_DIR=/usr -DALCP_ENABLE_DYNAMIC_COMPILER_PICK=OFF \
-DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang \
-G Ninja
cmake --build build
}
package() {
cd ${srcdir}/${pkgaltname}-${pkgver}/build
DESTDIR=${pkgdir} ninja install
}
|