From effd9a492f89d81caee02b2c61776ad8824c16e5 Mon Sep 17 00:00:00 2001 From: aki-nyan Date: Sat, 19 Feb 2022 08:50:16 +0100 Subject: [PATCH] Bumped nextpnr-all Version to 20220219_347ba3a --- PKGBUILD | 59 +++++++++++++++++++++++++++++++++++++++++++++-------- PKGBUILD.in | 57 +++++++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 99 insertions(+), 17 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 3afdf7668379..23b98f97e5fb 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,27 +1,68 @@ # Maintainer: Aki-nyan pkgname=nextpnr-all-nightly -pkgver=fd2d4a8f_20211125 +pkgver=20220219_347ba3a pkgrel=1 epoch=1 -pkgdesc="nextpnr portable FPGA place and route tool - all" -arch=("any") +pkgdesc="nextpnr portable FPGA place and route tool - all FPGA architectures" +arch=("x86_64") url="https://github.com/YosysHQ/nextpnr" license=("custom:ISC") groups=() options=("!strip") depends=( - "nextpnr-ice40-nightly>=fd2d4a8f_20211125" - "nextpnr-ecp5-nightly>=fd2d4a8f_20211125" - "nextpnr-nexus-nightly>=fd2d4a8f_20211125" - "nextpnr-generic-nightly>=fd2d4a8f_20211125" + "yosys-nightly" + "prjtrellis-nightly" + "icestorm-nightly" + "prjoxide-nightly" + "python" + "boost-libs" + "qt5-base" ) - +optdepends=() +makedepends=("git" "gcc" "cmake" "ninja" "pkgconf" "gawk" "eigen" "boost") conflicts=( "nextpnr-git" + "nextpnr-ice40-nightly" + "nextpnr-ecp5-nightly" + "nexrpnr-nexus-nightly" + "nextpnr-generic-nightly" +) +replaces=() +source=( + "nextpnr::git+https://github.com/YosysHQ/nextpnr.git#commit=347ba3a" +) +sha256sums=( + "SKIP" ) +_PREFIX="/usr" +prepare() { + cd "${srcdir}/nextpnr" + [ ! -d "${srcdir}/nextpnr/build-all" ] && mkdir build-all +} + +build() { + cd "${srcdir}/nextpnr" + cd build-all + cmake -G Ninja \ + -DARCH=generic,ice40,ecp5,nexus \ + -DBUILD_PYTHON=ON \ + -DBUILD_GUI=ON \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_INSTALL_PREFIX=${_PREFIX} \ + -DUSE_OPENMP=ON \ + .. + ninja +} + +check() { + cd "${srcdir}/nextpnr" + ninja -C build-all test +} package() { - echo "nya" + cd "${srcdir}/nextpnr" + DESTDIR="${pkgdir}" PREFIX="${_PREFIX}" ninja -C build-ecp5 install + install -Dm644 "${srcdir}/nextpnr/COPYING" "${pkgdir}${_PREFIX}/share/licenses/nextpnr/COPYING" } diff --git a/PKGBUILD.in b/PKGBUILD.in index f34906a86c83..59dba78de703 100644 --- a/PKGBUILD.in +++ b/PKGBUILD.in @@ -4,24 +4,65 @@ pkgname=nextpnr-all-nightly pkgver=@NPR_VER@ pkgrel=1 epoch=1 -pkgdesc="nextpnr portable FPGA place and route tool - all" -arch=("any") +pkgdesc="nextpnr portable FPGA place and route tool - all FPGA architectures" +arch=("x86_64") url="https://github.com/YosysHQ/nextpnr" license=("custom:ISC") groups=() options=("!strip") depends=( - "nextpnr-ice40-nightly>=@NPRI_VER@" - "nextpnr-ecp5-nightly>=@NPRE_VER@" - "nextpnr-nexus-nightly>=@NPRO_VER@" - "nextpnr-generic-nightly>=@NPRG_VER@" + "yosys-nightly" + "prjtrellis-nightly" + "icestorm-nightly" + "prjoxide-nightly" + "python" + "boost-libs" + "qt5-base" ) - +optdepends=() +makedepends=("git" "gcc" "cmake" "ninja" "pkgconf" "gawk" "eigen" "boost") conflicts=( "nextpnr-git" + "nextpnr-ice40-nightly" + "nextpnr-ecp5-nightly" + "nextpnr-nexus-nightly" + "nextpnr-generic-nightly" +) +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-all" ] && mkdir build-all +} + +build() { + cd "${srcdir}/nextpnr" + cd build-all + cmake -G Ninja \ + -DARCH=generic,ice40,ecp5,nexus \ + -DBUILD_PYTHON=ON \ + -DBUILD_GUI=ON \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_INSTALL_PREFIX=${_PREFIX} \ + -DUSE_OPENMP=ON \ + .. + ninja +} + +check() { + cd "${srcdir}/nextpnr" + ninja -C build-all test +} package() { - echo "nya" + cd "${srcdir}/nextpnr" + DESTDIR="${pkgdir}" PREFIX="${_PREFIX}" ninja -C build-ecp5 install + install -Dm644 "${srcdir}/nextpnr/COPYING" "${pkgdir}${_PREFIX}/share/licenses/nextpnr/COPYING" }