Package Details: uhdm-git r2067.496bb31-1

Git Clone URL: https://aur.archlinux.org/uhdm-git.git (read-only, click to copy)
Package Base: uhdm-git
Description: A complete modeling of the IEEE SystemVerilog Object Model
Upstream URL: https://github.com/chipsalliance/UHDM
Licenses: Apache
Conflicts: uhdm
Provides: uhdm
Submitter: xiretza
Maintainer: xiretza
Last Packager: xiretza
Votes: 0
Popularity: 0.000000
First Submitted: 2021-12-05 20:05 (UTC)
Last Updated: 2023-09-24 19:59 (UTC)

Required by (2)

Sources (1)

Latest Comments

xiretza commented on 2023-09-24 20:00 (UTC)

Sorry it took so long, it's finally fixed now - no more patches!

pinsl commented on 2023-04-05 14:58 (UTC) (edited on 2023-04-05 14:59 (UTC) by pinsl)

patch to fix build:

diff --git a/0003-Install-capnp-file-to-usr-share.patch b/0001-Install-capnp-file-to-usr-share.patch
similarity index 63%
rename from 0003-Install-capnp-file-to-usr-share.patch
rename to 0001-Install-capnp-file-to-usr-share.patch
index fc61ae3..96fbe47 100644
--- a/0003-Install-capnp-file-to-usr-share.patch
+++ b/0001-Install-capnp-file-to-usr-share.patch
@@ -1,22 +1,25 @@
-From a9d53f0245bc65b15a5990aee0eb7fe146b84bb2 Mon Sep 17 00:00:00 2001
+From adda490aa32a3ed506e022153f407a02dad8227e Mon Sep 17 00:00:00 2001
 From: Xiretza <xiretza@xiretza.xyz>
 Date: Sun, 5 Dec 2021 17:23:28 +0100
-Subject: [PATCH 3/3] Install capnp file to /usr/share
+Subject: [PATCH] Install capnp file to /usr/share

 ---
  CMakeLists.txt | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

 diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 6452c85..ed50d55 100644
+index e0de39f..f4b9a51 100644
 --- a/CMakeLists.txt
 +++ b/CMakeLists.txt
-@@ -238,4 +238,4 @@ install(
+@@ -352,7 +352,7 @@ install(
  install(DIRECTORY ${GENDIR}/uhdm/
          DESTINATION ${CMAKE_INSTALL_PREFIX}/include/uhdm/)
  install(FILES ${GENDIR}/src/UHDM.capnp
 -        DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/uhdm)
 +        DESTINATION ${CMAKE_INSTALL_PREFIX}/share/uhdm)
+ 
+ # Generate cmake config files for reuse by downstream packages
+ include(CMakePackageConfigHelpers)
 -- 
-2.34.1
+2.40.0

diff --git a/PKGBUILD b/PKGBUILD
index 2e4b139..93105a8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +1,21 @@
 _pkgname=UHDM
 pkgname=${_pkgname,,}-git
-pkgver=r1270.ad9a41e
-pkgrel=2
+pkgver=r1794.b33c0d2
+pkgrel=1
 pkgdesc="A complete modeling of the IEEE SystemVerilog Object Model"
 arch=(x86_64)
 url="https://github.com/chipsalliance/UHDM"
 license=('Apache')
 depends=('capnproto')
-makedepends=('git' 'cmake' 'python' 'python-orderedmultidict' 'gtest')
+makedepends=('git' 'cmake' 'python' 'python-orderedmultidict' 'gtest' 'swig')
 provides=("${_pkgname,,}=$pkgver")
 conflicts=("${_pkgname,,}")
 source=(
    "git+$url"
-   "0001-Remove-unnecessary-submodules.patch"
-   "0002-Install-libuhdm.so-to-usr-lib.patch"
-   "0003-Install-capnp-file-to-usr-share.patch"
+   "0001-Install-capnp-file-to-usr-share.patch"
 )
 sha256sums=('SKIP'
-            'e58d2c3ec4b156f647b2ff8c025ef3c69da3c11bbc0cf9ed5e3469f00b036cdc'
-            '299f80979c633f2219435f5a69063489b80ece349cf69f92c2ea66e3eee0ace0'
-            '99a3ec356b42bf537099dcae1d938634380e793f22c7e6b8c73d0d5165b7b953')
+            '6e3af2757f5677d4a2371525f0cd3a97fff1526d686fe73282f2bf2e0aea182f')

 pkgver() {
    cd "$srcdir/$_pkgname"
@@ -30,23 +26,25 @@ pkgver() {
 prepare() {
    cd "$srcdir/$_pkgname"

-   patch -p1 < "$srcdir/0001-Remove-unnecessary-submodules.patch"
-   patch -p1 < "$srcdir/0002-Install-libuhdm.so-to-usr-lib.patch"
-   patch -p1 < "$srcdir/0003-Install-capnp-file-to-usr-share.patch"
+   patch -p1 < "$srcdir/0001-Install-capnp-file-to-usr-share.patch"
 }

 build() {
    cmake -B build -S "$_pkgname" \
        -DCMAKE_INSTALL_PREFIX=/usr \
-       -DBUILD_SHARED_LIBS=on \
-       -DCMAKE_BUILD_TYPE=None
-   make -C build
+       -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+       -DBUILD_SHARED_LIBS=ON \
+       -DCMAKE_BUILD_TYPE=None \
+       -DUHDM_USE_HOST_CAPNP=ON \
+       -DUHDM_USE_HOST_GTEST=ON \
+       -Wno-dev
+   cmake --build build
 }

 check() {
-   make -C build -k test
+   cmake --build build --target test -- --keep-going
 }

 package() {
-   make -C build DESTDIR="$pkgdir/" install
+   DESTDIR="$pkgdir" cmake --install build
 }