76 lines
No EOL
2.9 KiB
Bash
76 lines
No EOL
2.9 KiB
Bash
# Maintainer: Fabian Posch <aur@posch.tech>
|
|
|
|
pkgname=act-core-git
|
|
pkgver=0.0.1.r1865.033b73b
|
|
pkgrel=2
|
|
pkgdesc="ACT core provides the core library for the ACT AVLSI toolflow."
|
|
arch=('x86_64')
|
|
url="https://github.com/asyncvlsi/act"
|
|
license=('GPL-2.0')
|
|
depends=('libedit' 'zlib' 'm4')
|
|
optdepends=()
|
|
makedepends=('git' 'gcc' 'patch' 'sed')
|
|
conflicts=('act-core')
|
|
provides=('act-core')
|
|
source=(
|
|
"git+${url}"
|
|
"${pkgname}.csh"
|
|
"${pkgname}.sh"
|
|
"install-scripts.patch"
|
|
"script-makefile.patch"
|
|
"standard-makefile.patch"
|
|
"LICENSE"
|
|
)
|
|
sha512sums=(
|
|
"SKIP"
|
|
"2a8efc3439ba260009f2a0040630e033a6a49d6718775da574a926bc540adc19bbc4e14dcfa5c0d04dcaeb2c4c3bd7c496d353f0e21e758923df29353b27582e"
|
|
"d3b3826b1e2126f9e12760d9046da7cd19b8f20e94e40e4229b82df3a36f8d7392c09feb3b473ca603cdac214d6b97f6b2d6cd667b8b11e5cf5b661f0bf94640"
|
|
"49663486b1d8098da390f53f731d654f7711af1329e0b21a7a34658864278b6671c2f234320c56132a5cfedd42a6152f5a1ad502f068a767a95049476aa44af0"
|
|
"e2c949e7e7ef6a3053b406db61c975f3b77e7bef203dc858edabcc6eff8c1a1c47df7d5747f55973ac5a0ed6b5ff512aef87490b979c5cbcd13305d0a23348e0"
|
|
"14d2e5faffafa713805bad6952546870d6e2519f996899b89fbbc09e19b0ed5500db2f1cba3a9aaf73700e58d295b1f35000278046d7b38cceed5736e1102d6c"
|
|
"aee80b1f9f7f4a8a00dcf6e6ce6c41988dcaedc4de19d9d04460cbfb05d99829ffe8f9d038468eabbfba4d65b38e8dbef5ecf5eb8a1b891d9839cda6c48ee957"
|
|
)
|
|
|
|
pkgver() {
|
|
cd act
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
|
|
}
|
|
|
|
prepare() {
|
|
# the scripts install script uses ACT_HOME instead of INSTALLDIR as the installation location
|
|
# we need to fix this
|
|
patch "${srcdir}/act/scripts/install-scripts" < "install-scripts.patch"
|
|
patch "${srcdir}/act/scripts/Makefile" < "script-makefile.patch"
|
|
|
|
# to separate libraries and build location better for packaging, inject install location override
|
|
patch "${srcdir}/act/scripts/Makefile.std" < "standard-makefile.patch"
|
|
}
|
|
|
|
package() {
|
|
# install the scripts to set the correct env variables
|
|
install -Dm755 "${pkgname}.sh" "${pkgdir}/etc/profile.d/${pkgname}.sh"
|
|
install -Dm755 "${pkgname}.csh" "${pkgdir}/etc/profile.d/${pkgname}.csh"
|
|
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
# we need to build in fakeroot since ACT does not separate
|
|
# build and install very cleanly
|
|
export VLSI_TOOLS_SRC=${srcdir}/act
|
|
|
|
install -d "${pkgdir}/opt/act-async"
|
|
export ACT_HOME="/opt/act-async"
|
|
|
|
# build the package
|
|
cd act/
|
|
./configure "${pkgdir}/opt/act-async"
|
|
./build
|
|
make install
|
|
|
|
# Since reconfiguring includes creating the folders which we can't do,
|
|
# only change the installation location.
|
|
# In addition, for other packages to be able to build to other places than
|
|
# /opt/act-async, we make the assignment conditional.
|
|
sed -i 's/INSTALLDIR=.*/INSTALLDIR=\/opt\/act-async/' "${pkgdir}/opt/act-async/scripts/config"
|
|
|
|
export ACT_HOME="${pkgdir}/opt/act-async"
|
|
make runtest
|
|
} |