fix library location for building further packages, use license from repo
This commit is contained in:
parent
e5f45100b8
commit
78df947ee8
3 changed files with 53 additions and 25 deletions
6
.SRCINFO
6
.SRCINFO
|
|
@ -1,7 +1,7 @@
|
||||||
pkgbase = act-core-git
|
pkgbase = act-core-git
|
||||||
pkgdesc = ACT core provides the core library for the ACT AVLSI toolflow.
|
pkgdesc = ACT core provides the core library for the ACT AVLSI toolflow.
|
||||||
pkgver = 0.0.1.r1865.033b73b
|
pkgver = 0.0.1.r1865.033b73b
|
||||||
pkgrel = 3
|
pkgrel = 4
|
||||||
url = https://github.com/asyncvlsi/act
|
url = https://github.com/asyncvlsi/act
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
license = GPL-2.0
|
license = GPL-2.0
|
||||||
|
|
@ -21,13 +21,11 @@ pkgbase = act-core-git
|
||||||
source = install-scripts.patch
|
source = install-scripts.patch
|
||||||
source = script-makefile.patch
|
source = script-makefile.patch
|
||||||
source = standard-makefile.patch
|
source = standard-makefile.patch
|
||||||
source = LICENSE
|
|
||||||
sha512sums = SKIP
|
sha512sums = SKIP
|
||||||
sha512sums = 2a8efc3439ba260009f2a0040630e033a6a49d6718775da574a926bc540adc19bbc4e14dcfa5c0d04dcaeb2c4c3bd7c496d353f0e21e758923df29353b27582e
|
sha512sums = 2a8efc3439ba260009f2a0040630e033a6a49d6718775da574a926bc540adc19bbc4e14dcfa5c0d04dcaeb2c4c3bd7c496d353f0e21e758923df29353b27582e
|
||||||
sha512sums = d3b3826b1e2126f9e12760d9046da7cd19b8f20e94e40e4229b82df3a36f8d7392c09feb3b473ca603cdac214d6b97f6b2d6cd667b8b11e5cf5b661f0bf94640
|
sha512sums = d3b3826b1e2126f9e12760d9046da7cd19b8f20e94e40e4229b82df3a36f8d7392c09feb3b473ca603cdac214d6b97f6b2d6cd667b8b11e5cf5b661f0bf94640
|
||||||
sha512sums = 49663486b1d8098da390f53f731d654f7711af1329e0b21a7a34658864278b6671c2f234320c56132a5cfedd42a6152f5a1ad502f068a767a95049476aa44af0
|
sha512sums = 49663486b1d8098da390f53f731d654f7711af1329e0b21a7a34658864278b6671c2f234320c56132a5cfedd42a6152f5a1ad502f068a767a95049476aa44af0
|
||||||
sha512sums = e2c949e7e7ef6a3053b406db61c975f3b77e7bef203dc858edabcc6eff8c1a1c47df7d5747f55973ac5a0ed6b5ff512aef87490b979c5cbcd13305d0a23348e0
|
sha512sums = e2c949e7e7ef6a3053b406db61c975f3b77e7bef203dc858edabcc6eff8c1a1c47df7d5747f55973ac5a0ed6b5ff512aef87490b979c5cbcd13305d0a23348e0
|
||||||
sha512sums = 14d2e5faffafa713805bad6952546870d6e2519f996899b89fbbc09e19b0ed5500db2f1cba3a9aaf73700e58d295b1f35000278046d7b38cceed5736e1102d6c
|
sha512sums = b63ddb198a5b967a1b1eb1801a20b021257424975ea98a738feb2d0e6020a43e5f551591b4257863100bc885a9034c4e3e713758bf29a38a690a9a57efe94949
|
||||||
sha512sums = aee80b1f9f7f4a8a00dcf6e6ce6c41988dcaedc4de19d9d04460cbfb05d99829ffe8f9d038468eabbfba4d65b38e8dbef5ecf5eb8a1b891d9839cda6c48ee957
|
|
||||||
|
|
||||||
pkgname = act-core-git
|
pkgname = act-core-git
|
||||||
|
|
|
||||||
14
PKGBUILD
14
PKGBUILD
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
pkgname=act-core-git
|
pkgname=act-core-git
|
||||||
pkgver=0.0.1.r1865.033b73b
|
pkgver=0.0.1.r1865.033b73b
|
||||||
pkgrel=3
|
pkgrel=4
|
||||||
pkgdesc="ACT core provides the core library for the ACT AVLSI toolflow."
|
pkgdesc="ACT core provides the core library for the ACT AVLSI toolflow."
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://github.com/asyncvlsi/act"
|
url="https://github.com/asyncvlsi/act"
|
||||||
|
|
@ -19,7 +19,6 @@ source=(
|
||||||
"install-scripts.patch"
|
"install-scripts.patch"
|
||||||
"script-makefile.patch"
|
"script-makefile.patch"
|
||||||
"standard-makefile.patch"
|
"standard-makefile.patch"
|
||||||
"LICENSE"
|
|
||||||
)
|
)
|
||||||
sha512sums=(
|
sha512sums=(
|
||||||
"SKIP"
|
"SKIP"
|
||||||
|
|
@ -27,8 +26,7 @@ sha512sums=(
|
||||||
"d3b3826b1e2126f9e12760d9046da7cd19b8f20e94e40e4229b82df3a36f8d7392c09feb3b473ca603cdac214d6b97f6b2d6cd667b8b11e5cf5b661f0bf94640"
|
"d3b3826b1e2126f9e12760d9046da7cd19b8f20e94e40e4229b82df3a36f8d7392c09feb3b473ca603cdac214d6b97f6b2d6cd667b8b11e5cf5b661f0bf94640"
|
||||||
"49663486b1d8098da390f53f731d654f7711af1329e0b21a7a34658864278b6671c2f234320c56132a5cfedd42a6152f5a1ad502f068a767a95049476aa44af0"
|
"49663486b1d8098da390f53f731d654f7711af1329e0b21a7a34658864278b6671c2f234320c56132a5cfedd42a6152f5a1ad502f068a767a95049476aa44af0"
|
||||||
"e2c949e7e7ef6a3053b406db61c975f3b77e7bef203dc858edabcc6eff8c1a1c47df7d5747f55973ac5a0ed6b5ff512aef87490b979c5cbcd13305d0a23348e0"
|
"e2c949e7e7ef6a3053b406db61c975f3b77e7bef203dc858edabcc6eff8c1a1c47df7d5747f55973ac5a0ed6b5ff512aef87490b979c5cbcd13305d0a23348e0"
|
||||||
"14d2e5faffafa713805bad6952546870d6e2519f996899b89fbbc09e19b0ed5500db2f1cba3a9aaf73700e58d295b1f35000278046d7b38cceed5736e1102d6c"
|
"b63ddb198a5b967a1b1eb1801a20b021257424975ea98a738feb2d0e6020a43e5f551591b4257863100bc885a9034c4e3e713758bf29a38a690a9a57efe94949"
|
||||||
"aee80b1f9f7f4a8a00dcf6e6ce6c41988dcaedc4de19d9d04460cbfb05d99829ffe8f9d038468eabbfba4d65b38e8dbef5ecf5eb8a1b891d9839cda6c48ee957"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
|
|
@ -41,16 +39,13 @@ prepare() {
|
||||||
# we need to fix this
|
# we need to fix this
|
||||||
patch "${srcdir}/act/scripts/install-scripts" < "install-scripts.patch"
|
patch "${srcdir}/act/scripts/install-scripts" < "install-scripts.patch"
|
||||||
patch "${srcdir}/act/scripts/Makefile" < "script-makefile.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() {
|
package() {
|
||||||
# install the scripts to set the correct env variables
|
# install the scripts to set the correct env variables
|
||||||
install -Dm755 "${pkgname}.sh" "${pkgdir}/etc/profile.d/${pkgname}.sh"
|
install -Dm755 "${pkgname}.sh" "${pkgdir}/etc/profile.d/${pkgname}.sh"
|
||||||
install -Dm755 "${pkgname}.csh" "${pkgdir}/etc/profile.d/${pkgname}.csh"
|
install -Dm755 "${pkgname}.csh" "${pkgdir}/etc/profile.d/${pkgname}.csh"
|
||||||
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
install -Dm644 "${srcdir}/act/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||||
|
|
||||||
# we need to build in fakeroot since ACT does not separate
|
# we need to build in fakeroot since ACT does not separate
|
||||||
# build and install very cleanly
|
# build and install very cleanly
|
||||||
|
|
@ -73,4 +68,7 @@ package() {
|
||||||
|
|
||||||
export ACT_HOME="${pkgdir}/opt/act-async"
|
export ACT_HOME="${pkgdir}/opt/act-async"
|
||||||
make runtest
|
make runtest
|
||||||
|
|
||||||
|
# to separate libraries and build location better for packaging, inject install location override
|
||||||
|
patch "${pkgdir}/opt/act-async/scripts/Makefile.std" < "${srcdir}/standard-makefile.patch"
|
||||||
}
|
}
|
||||||
|
|
@ -1,13 +1,45 @@
|
||||||
--- Makefile.std 2024-06-04 18:12:48.311904067 +0200
|
38a39,42
|
||||||
+++ Makefile.std_fixed 2024-06-04 18:16:51.839374483 +0200
|
> ifdef INSTALL_OVERRIDE
|
||||||
@@ -36,6 +36,10 @@
|
> INSTALLDIR=$(INSTALL_OVERRIDE)
|
||||||
|
> endif
|
||||||
include $(VLSI_TOOLS_SRC)/scripts/config
|
>
|
||||||
|
51,58c55,64
|
||||||
+ifdef INSTALL_OVERRIDE
|
< LIBCOMMON=-L$(INSTALLLIB) -lvlsilib
|
||||||
+INSTALLDIR=$(INSTALL_OVERRIDE)
|
< SHLIBCOMMON=-L$(INSTALLLIB) -lvlsilib_sh
|
||||||
+endif
|
< LIBACT=-L$(INSTALLLIB) -lact -lvlsilib -ldl
|
||||||
+
|
< SHLIBACT=-L$(INSTALLLIB) -lact_sh -lvlsilib_sh -ldl
|
||||||
.SUFFIXES: .os
|
< LIBACTPASS=-L$(INSTALLLIB) -lactpass -lact -lvlsilib -ldl
|
||||||
|
< SHLIBACTPASS=-L$(INSTALLLIB) -lactpass_sh -lact_sh -lvlsilib_sh -ldl
|
||||||
INSTALLBIN=$(INSTALLDIR)/bin
|
< LIBSSIM=-L$(INSTALLLIB) -lssim -lvlsilib
|
||||||
|
< LIBASIM=-L$(INSTALLLIB) -lasim -lvlsilib
|
||||||
|
---
|
||||||
|
> LIBLOC=$(ACT_HOME)/lib
|
||||||
|
>
|
||||||
|
> LIBCOMMON=-L$(LIBLOC) -lvlsilib
|
||||||
|
> SHLIBCOMMON=-L$(LIBLOC) -lvlsilib_sh
|
||||||
|
> LIBACT=-L$(LIBLOC) -lact -lvlsilib -ldl
|
||||||
|
> SHLIBACT=-L$(LIBLOC) -lact_sh -lvlsilib_sh -ldl
|
||||||
|
> LIBACTPASS=-L$(LIBLOC) -lactpass -lact -lvlsilib -ldl
|
||||||
|
> SHLIBACTPASS=-L$(LIBLOC) -lactpass_sh -lact_sh -lvlsilib_sh -ldl
|
||||||
|
> LIBSSIM=-L$(LIBLOC) -lssim -lvlsilib
|
||||||
|
> LIBASIM=-L$(LIBLOC) -lasim -lvlsilib
|
||||||
|
62,68c68,74
|
||||||
|
< LIBDEPEND=$(INSTALLLIB)/libvlsilib.a
|
||||||
|
< ACTDEPEND=$(INSTALLLIB)/libact.a $(LIBDEPEND)
|
||||||
|
< ACTPASSDEPEND=$(ACTDEPEND) $(INSTALLLIB)/libactpass.a
|
||||||
|
< SSIMDEPEND=$(INSTALLLIB)/libssim.a $(LIBDEPEND)
|
||||||
|
< ASIMDEPEND=$(INSTALLLIB)/libasim.a $(LIBDEPEND)
|
||||||
|
< SCMDEPEND=$(INSTALLLIB)/libactscm.a
|
||||||
|
< SCMCLIDEPEND=$(INSTALLLIB)/libactscm.a $(INSTALLLIB)/libactscmcli.a
|
||||||
|
---
|
||||||
|
> LIBDEPEND=$(LIBLOC)/libvlsilib.a
|
||||||
|
> ACTDEPEND=$(LIBLOC)/libact.a $(LIBDEPEND)
|
||||||
|
> ACTPASSDEPEND=$(ACTDEPEND) $(LIBLOC)/libactpass.a
|
||||||
|
> SSIMDEPEND=$(LIBLOC)/libssim.a $(LIBDEPEND)
|
||||||
|
> ASIMDEPEND=$(LIBLOC)/libasim.a $(LIBDEPEND)
|
||||||
|
> SCMDEPEND=$(LIBLOC)/libactscm.a
|
||||||
|
> SCMCLIDEPEND=$(LIBLOC)/libactscm.a $(LIBLOC)/libactscmcli.a
|
||||||
|
73c79
|
||||||
|
< DFLAGS=-DARCH_$(ARCH) -DOS_$(OS) -DBASEOS_$(BASEOS) -I$(INSTALLINC) # -D_FORTIFY_SOURCE=0
|
||||||
|
---
|
||||||
|
> DFLAGS=-DARCH_$(ARCH) -DOS_$(OS) -DBASEOS_$(BASEOS) -I$(INSTALLINC) -I$(ACT_HOME)/include # -D_FORTIFY_SOURCE=0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue