summaryrefslogtreecommitdiff
path: root/pcr/nextpnr-git
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-08-24 18:37:19 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-08-25 01:20:09 +0200
commit674114acead32eed4c4b3672d3588edd2f83db5c (patch)
treed510cca00f1e1dabb0b719a804bad111ee096014 /pcr/nextpnr-git
parent9d677f52a3b29dedf9227e77de3db065cbb072ca (diff)
downloadabslibre-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/nextpnr-git')
-rw-r--r--pcr/nextpnr-git/PKGBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/pcr/nextpnr-git/PKGBUILD b/pcr/nextpnr-git/PKGBUILD
new file mode 100644
index 000000000..78a8dcded
--- /dev/null
+++ b/pcr/nextpnr-git/PKGBUILD
@@ -0,0 +1,51 @@
+# Maintainer(AUR): Graham Edgecombe <gpe@grahamedgecombe.com>
+# Maintainer: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
+# parabola changes and rationale:
+# no changes.
+pkgname=nextpnr-git
+pkgver=r2190.c192ba2
+pkgrel=1
+pkgdesc='Portable FPGA place and route tool'
+arch=('i686' 'x86_64')
+url='https://github.com/YosysHQ/nextpnr'
+license=('custom:ISC')
+depends=('boost-libs' 'python' 'qt5-base')
+makedepends=('boost' 'cmake' 'eigen' 'git' 'icestorm' 'trellis')
+provides=('nextpnr')
+conflicts=('nextpnr')
+source=('nextpnr::git+https://github.com/YosysHQ/nextpnr.git')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/nextpnr"
+ printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/nextpnr"
+
+ mkdir -p build
+ cd build
+
+ cmake \
+ -DARCH=generic\;ice40\;ecp5 \
+ -DICEBOX_ROOT=/usr/share/icebox \
+ -DTRELLIS_ROOT=/usr/share/trellis \
+ -DBUILD_TESTS=ON \
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DUSE_OPENMP=ON \
+ ..
+ make
+}
+
+check() {
+ cd "$srcdir/nextpnr/build"
+ make test
+}
+
+package() {
+ cd "$srcdir/nextpnr/build"
+ make DESTDIR="$pkgdir" install
+ install -Dm644 ../COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+}