From 6ccf47b3dcb8945aa692eb0d36b9ba0c5ce32500 Mon Sep 17 00:00:00 2001 From: Aki Van Ness Date: Thu, 16 Sep 2021 20:20:38 -0400 Subject: [PATCH] Bumped nextpnr-nexus Version to 67bd349e_20212017 --- .SRCINFO | 25 ++++++++++++++++++++++ .gitignore | 5 +++++ PKGBUILD | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++ PKGBUILD.in | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 150 insertions(+) create mode 100644 .SRCINFO create mode 100644 .gitignore create mode 100644 PKGBUILD create mode 100644 PKGBUILD.in diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000000000..faa59e865124f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = nextpnr-nexus-nightly + pkgdesc = nextpnr portable FPGA place and route tool - for nexus + pkgver = 67bd349e_20212017 + pkgrel = 1 + url = https://github.com/YosysHQ/nextpnr + arch = any + license = custom:ISC + makedepends = git + makedepends = gcc + makedepends = cmake + makedepends = ninja + makedepends = pkgconf + makedepends = gawk + makedepends = eigen + depends = yosys-nightly + depends = oxide-nightly + depends = python + depends = boost-libs + depends = qt5-base + conflicts = nextpnr-git + options = !strip + source = nextpnr::git+https://github.com/YosysHQ/nextpnr.git#commit=67bd349e + sha256sums = SKIP + +pkgname = nextpnr-nexus-nightly diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000..ff301b174ab6d --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +* +!.gitignore +!PKGBUILD +!PKGBUILD.in +!.SRCINFO diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000000000..00317a9442c12 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,60 @@ +# Maintainer: Aki-nyan + +pkgname=nextpnr-nexus-nightly +pkgver=67bd349e_20212017 +pkgrel=1 +pkgdesc="nextpnr portable FPGA place and route tool - for nexus" +arch=("any") +url="https://github.com/YosysHQ/nextpnr" +license=("custom:ISC") +groups=() +options=("!strip") +depends=( + "yosys-nightly" + "oxide-nightly" + "python" + "boost-libs" + "qt5-base" +) +optdepends=() +makedepends=("git" "gcc" "cmake" "ninja" "pkgconf" "gawk" "eigen") +conflicts=( + "nextpnr-git" +) +replaces=() +source=( + "nextpnr::git+https://github.com/YosysHQ/nextpnr.git"#commit=67bd349e +) +sha256sums=( + "SKIP" +) + +_PREFIX="/usr" +prepare() { + cd "${srcdir}/nextpnr" + [ ! -d "${srcdir}/nextpnr/build-nexus" ] && mkdir build-nexus + cd .. +} + +build() { + cd "${srcdir}/nextpnr" + cd build-nexus + cmake -G Ninja \ + -DARCH=nexus \ + -DBUILD_PYTHON=ON \ + -DBUILD_GUI=ON \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_INSTALL_PREFIX=${_PREFIX} \ + -DUSE_OPENMP=ON \ + .. + cd .. + ninja -C build-nexus + cd .. +} + +package() { + cd "${srcdir}/nextpnr" + DESTDIR="${pkgdir}" PREFIX="${_PREFIX}" ninja -C build-nexus install + install -Dm644 "${srcdir}/nextpnr/COPYING" "${pkgdir}${_PREFIX}/share/licenses/nextpnr-nexus/COPYING" + cd .. +} diff --git a/PKGBUILD.in b/PKGBUILD.in new file mode 100644 index 0000000000000..93b6ceba1b1a6 --- /dev/null +++ b/PKGBUILD.in @@ -0,0 +1,60 @@ +# Maintainer: Aki-nyan + +pkgname=nextpnr-nexus-nightly +pkgver=@NPR_VER@ +pkgrel=1 +pkgdesc="nextpnr portable FPGA place and route tool - for nexus" +arch=("any") +url="https://github.com/YosysHQ/nextpnr" +license=("custom:ISC") +groups=() +options=("!strip") +depends=( + "yosys-nightly" + "oxide-nightly" + "python" + "boost-libs" + "qt5-base" +) +optdepends=() +makedepends=("git" "gcc" "cmake" "ninja" "pkgconf" "gawk" "eigen") +conflicts=( + "nextpnr-git" +) +replaces=() +source=( + "nextpnr::git+https://github.com/YosysHQ/nextpnr.git"#commit=@NPR_HASH@ +) +sha256sums=( + "SKIP" +) + +_PREFIX="/usr" +prepare() { + cd "${srcdir}/nextpnr" + [ ! -d "${srcdir}/nextpnr/build-nexus" ] && mkdir build-nexus + cd .. +} + +build() { + cd "${srcdir}/nextpnr" + cd build-nexus + cmake -G Ninja \ + -DARCH=nexus \ + -DBUILD_PYTHON=ON \ + -DBUILD_GUI=ON \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_INSTALL_PREFIX=${_PREFIX} \ + -DUSE_OPENMP=ON \ + .. + cd .. + ninja -C build-nexus + cd .. +} + +package() { + cd "${srcdir}/nextpnr" + DESTDIR="${pkgdir}" PREFIX="${_PREFIX}" ninja -C build-nexus install + install -Dm644 "${srcdir}/nextpnr/COPYING" "${pkgdir}${_PREFIX}/share/licenses/nextpnr-nexus/COPYING" + cd .. +}