summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5573298650e8402e6896f68a402a30fe3fc0ccaf (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
# Maintainer: Bernardo Ferrari Mendonca <bernardo.mferrari@gmail.com>
pkgname=ophidian-lef-git
pkgver=5.8
pkgrel=2
groups=('ophidian')
pkgdesc="Cadence's LEF parser toolkit including C++ and C APIs"
arch=('x86_64')
url="https://gitlab.com/eclufsc/LEF"
license=('Apache')
options=(staticlibs)
makedepends=('make' 'bison' 'flex' 'zlib')
source=('git+https://gitlab.com/eclufsc/LEF.git#branch=master')
md5sums=('SKIP')


build() {
	cd $srcdir/LEF
	make CXXFLAGS="-fPIC" all
}

package() {
	cd $srcdir/LEF
    install -d $pkgdir/usr/bin
    install -d $pkgdir/usr/lib
    install -d $pkgdir/usr/include
    install -d $pkgdir/usr/share/LEF
    install -D -m 644 $srcdir/LEF/bin/* $pkgdir/usr/bin
    install -D -m 644 $srcdir/LEF/lib/* $pkgdir/usr/lib
    install -D -m 644 $srcdir/LEF/include/* $pkgdir/usr/include

    install -D -m 644 $srcdir/LEF/LICENSE.TXT $pkgdir/usr/share/LEF/copyright
}