summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eb72a2256c43be0dead815f5557a3ac7a24ed346 (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
# Maintainer: Jiuyang Liu <liujiuyang1994@gmail.com>

pkgname=opensta-git
pkgver=r926.bb50746
pkgrel=1
pkgdesc="A gate level static timing verifier."
arch=('x86_64')
url="https://github.com/The-OpenROAD-Project/OpenSTA"
license=('GPL')
makedepends=('tcl' 'swig' 'bison' 'flex' 'git' 'cmake')
optdepends=(
  'libzip: read Verilog, SDF, SPF, and SPEF files compressed with gzip' 
  'cudd: a binary decision diageram package for improving conditional timing arc handling')
source=("git+https://github.com/The-OpenROAD-Project/OpenSTA.git")
provides=("opensta")
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/OpenSTA"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "${srcdir}/OpenSTA"
  cmake . -DCUDD=/usr -DCMAKE_BUILD_TYPE=RELEASE
}

build() {
  cd "${srcdir}/OpenSTA"
  make
}

package() {
  cd "${srcdir}/OpenSTA"
  make DESTDIR=${pkgdir} install
}