summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a5acf87c62955790ba45fdb658b892c0cacfffae (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
# Maintainer: csantosb <csantosb dot inventati dot org>
pkgname=python-fusesoc
pkgver=1.10
pkgrel=0
pkgdesc="Package manager and build abstraction tool for FPGA/ASIC development."
arch=('any')
url="http://github.com/olofk/fusesoc/"
license=('GPLv3')
conflicts=('python-fusesoc-git')
provides=('python-fusesoc')
depends=('python' 'python-edalize' 'python-setuptools' 'python-pyaml')

makedepends=('git' 'python-pip')
optdepends=('iverilog: for simulating verilog designs'
	    'ghdl: for simulating VHDL designs'
	    'gtkwave: for visualizing waveforms')

options=(!emptydirs)
source=("git+https://github.com/olofk/fusesoc#tag=${pkgver}")
md5sums=('SKIP')

build() {
    cd "${srcdir}/fusesoc"
    python setup.py build
}

package() {
    PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps simplesat
    python -O -m compileall "${pkgdir}/simplesat"
    PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps ipyxact
    python -O -m compileall "${pkgdir}/ipyxact"
    cd "${srcdir}/fusesoc"
    python setup.py install --skip-build --root="$pkgdir" --optimize=1
    install -m 644 -D ./LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}