diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2019-08-24 18:37:19 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2019-08-25 01:20:09 +0200 |
commit | 674114acead32eed4c4b3672d3588edd2f83db5c (patch) | |
tree | d510cca00f1e1dabb0b719a804bad111ee096014 /pcr/yosys-git | |
parent | 9d677f52a3b29dedf9227e77de3db065cbb072ca (diff) | |
download | abslibre-674114acead32eed4c4b3672d3588edd2f83db5c.tar.gz abslibre-674114acead32eed4c4b3672d3588edd2f83db5c.tar.bz2 abslibre-674114acead32eed4c4b3672d3588edd2f83db5c.zip |
pcr: Add free software FPGA toolchain
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'pcr/yosys-git')
-rw-r--r-- | pcr/yosys-git/LICENSE | 15 | ||||
-rw-r--r-- | pcr/yosys-git/PKGBUILD | 48 |
2 files changed, 63 insertions, 0 deletions
diff --git a/pcr/yosys-git/LICENSE b/pcr/yosys-git/LICENSE new file mode 100644 index 000000000..d5b50f7fc --- /dev/null +++ b/pcr/yosys-git/LICENSE @@ -0,0 +1,15 @@ +yosys -- Yosys Open SYnthesis Suite + +Copyright (C) 2012 - 2015 Clifford Wolf <clifford@clifford.at> + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/pcr/yosys-git/PKGBUILD b/pcr/yosys-git/PKGBUILD new file mode 100644 index 000000000..985e9d456 --- /dev/null +++ b/pcr/yosys-git/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer (AUR): Patrick Lloyd <$(base64 --decode <<<'cGF0cmlja0BsbG95ZC5zaAo=')> +# Contributor (AUR): Sebastian Bøe <$(base64 --decode <<<'c2ViYXN0aWFuYm9vZUBnbWFpbC5jb20K')> +# Contributor (AUR): Darren Wu <$(base64 --decode <<<'ZGFycmVuMTk5NzA4MTBAZ21haWwuY29tCg==')> +# Maintainer: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> +# parabola changes and rationale: +# no changes. + +pkgname=yosys-git +pkgrel=1 +pkgver=r6611.dc9c47b5 +pkgdesc='A framework for RTL synthesis' +arch=('x86_64' 'i686') +url='http://www.clifford.at/yosys/' +license=('custom:ISC') +provides=("yosys") +conflicts=("yosys") +depends=('tcl' 'libffi' 'python' 'boost-libs') +optdepends=('graphviz: Schematics display support' 'xdot: Design netlist display support') +makedepends=('git' 'mercurial' 'boost') +source=('git+https://github.com/cliffordwolf/yosys.git' + 'git+https://github.com/berkeley-abc/abc.git' + 'LICENSE') +sha512sums=('SKIP' + 'SKIP' + 'a3202289ff7828c55d3ec3e22d23ed78a34fcae165a7c666d71d3cedd9abe06f638a09750d8c2d43dfca5781f1b32a616f439c3713a12265c02473f88c0f426d') + +build(){ + cd ${srcdir}/yosys + mv ../abc ./ + make config-gcc + echo "ENABLE_LIBYOSYS=1" >> Makefile.conf + echo "ENABLE_PYOSYS=1" >> Makefile.conf + make +} + +pkgver() { + cd "$srcdir/${pkgname%-git}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd ${srcdir}/yosys + make PREFIX=$pkgdir/usr/ PYTHON_PREFIX=$pkgdir/usr/ install + + install -D -m 644 \ + "${srcdir}/LICENSE" \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |