summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2b7eecdc9b2aa5af2abc5fee1800a83b8e95699a (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
# Maintainer: Bernardo Ferrari Mendonca <bernardo.mferrari@gmail.com>
pkgname=ophidian-verilog-parser-git
pkgver=0.2
pkgrel=2
groups=('ophidian')
pkgdesc="A Flex/Bison parser for the IEEE 1364-2001 Verilog Standard."
arch=('x86_64')
url="https://gitlab.com/eclufsc/verilog-parser"
license=('MIT')
options=(staticlibs)
makedepends=('cmake' 'make' 'bison' 'flex')
source=('git+https://gitlab.com/eclufsc/verilog-parser.git#branch=master')
md5sums=('SKIP')

build() {
	cd $srcdir/verilog-parser
    mkdir build && cd build
    cmake .. -DCMAKE_INSTALL_PREFIX=/usr
    make
}

package() {
    install -d $pkgdir/usr/share/verilog-parser
    install -D -m 644 $srcdir/verilog-parser/LICENSE.txt $pkgdir/usr/share/verilog-parser/copyright

	cd $srcdir/verilog-parser/build
	make DESTDIR="$pkgdir/" install
}