summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f594fa735415c2e122e3333b01416d5837624d9c (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Maintainer: Jiuyang Liu <jiuyang.liu@sifive.com>

pkgname=openroad-git
pkgver=r1370.c60f9724
pkgrel=1
pkgdesc='A framework for RTL synthesis'
arch=('x86_64')
url='https://theopenroadproject.org/'
license=('BSD')
depends=('bison' 'blas' 'flex' 'swig' 'boost' 'tcl' 'zlib')
makedepends=('cmake' 'clang' 'git')
source=(
  "git+https://github.com/The-OpenROAD-Project/OpenROAD.git"
  "git+https://github.com/The-OpenROAD-Project/OpenSTA.git"
  "git+https://github.com/The-OpenROAD-Project/OpenDB.git"
  "git+https://github.com/The-OpenROAD-Project/flute3.git"
  "git+https://github.com/The-OpenROAD-Project/RePlAce.git"
  "git+https://github.com/The-OpenROAD-Project/ioPlacer.git"
  "git+https://github.com/The-OpenROAD-Project/FastRoute.git"
  "git+https://gitlab.com/libeigen/eigen.git"
  "git+https://github.com/The-OpenROAD-Project/TritonMacroPlace.git"
  "git+https://github.com/The-OpenROAD-Project/OpenRCX.git"
  "git+https://github.com/The-OpenROAD-Project/PDNSim.git"
  "git+https://github.com/The-OpenROAD-Project/superlu.git"
  "git+https://github.com/The-OpenROAD-Project/lef.git"
  "git+https://github.com/The-OpenROAD-Project/def.git"
  )
md5sums=('SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP')

pkgver() {
  cd $srcdir/OpenROAD
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
  cd $srcdir/OpenROAD
  git submodule init
  git config submodule.module/OpenSTA.url $srcdir/OpenSTA
  git config submodule.module/eigen.url $srcdir/OpenDB
  git config submodule.flute3.url $srcdir/flute3
  git config submodule.src/replace.url $srcdir/RePlAce
  git config submodule.src/ioPlacer.url $srcdir/ioPlacer
  git config submodule.src/FastRoute.url $srcdir/FastRoute
  git config submodule.src/eigen.url $srcdir/eigen
  git config submodule.src/TritonMacroPlace.url $srcdir/TritonMacroPlace
  git config submodule.src/OpenRCX.url $srcdir/OpenRCX
  git config submodule.src/PDNSim.url $srcdir/PDNSim
  git submodule update
  cd src/PDNSim
  git submodule init
  git config submodule.modules/superlu.url $srcdir/superlu
  git submodule update
  cd -
  cd src/OpenDB
  git submodule init
  git config submodule.src/lef.url $srcdir/lef
  git config submodule.src/def.url $srcdir/def
  git submodule update
  cd -
  mkdir build
  cd build
  cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=$pkgdir/usr
}

build() {
  cd $srcdir/OpenROAD/build
  make
}

package() {
  cd $srcdir/OpenROAD/build
  make install
}