blob: 47415d20888c629ae1b2f9678e48ac8028ecf176 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: Zes4Null <rjw1248 at hotmail dot com>
pkgname=openvaf
_name=OpenVAF
pkgver=23.5.0
pkgrel=3
pkgdesc='A Next-Generation Verilog-A compiler https://openvaf.semimod.de/'
arch=(x86_64)
url='https://github.com/pascalkuthe/OpenVAF'
license=('GPL3')
depends=('llvm16-libs')
makedepends=('clang16' 'lld16' 'llvm16' 'rust' 'cargo-nextest' 'python')
options=('!lto')
source=(
"${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${_name}-v${pkgver}.tar.gz"
"0001-patch-for-llvm16.patch"
)
sha256sums=(
'c20b818cd4106af5f21368b4d801be3d81f2632ac3ec718f4003e1b15474c403'
'05e7edebdf03afbe4a3d01d2b977489577d4683f5c056feacec17376545210a4'
)
build() {
cd "${srcdir}/${_name}-${_name}-v${pkgver}"
patch -p1 < "${srcdir}/0001-patch-for-llvm16.patch"
export CARGO_TARGET_DIR=target
export LLVM_CONFIG=/bin/llvm-config-16
export LLVM_LINK_SHARED=1
cargo build --release
}
check() {
cd "${srcdir}/${_name}-${_name}-v${pkgver}"
RUN_SLOW_TESTS=1 cargo nextest run
}
package() {
cd "${srcdir}/${_name}-${_name}-v${pkgver}"
install -Dm755 "target/release/openvaf" "${pkgdir}/usr/bin/openvaf"
install -Dm755 "target/release/verilogae" "${pkgdir}/usr/bin/verilogae"
#install -Dm755 "target/release/xtask" "${pkgdir}/usr/bin/xtask"
install -Dm644 "target/release/libverilogae.so" "${pkgdir}/usr/lib/${pkgname}/libverilogae.so"
install -Dm644 "target/release/libverilogae_py.so" "${pkgdir}/usr/lib/${pkgname}/libverilogae_py.so"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}
|