mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
59 lines
1.3 KiB
Bash
59 lines
1.3 KiB
Bash
# Maintainer: Aki-nyan <aur@catgirl.link>
|
|
|
|
pkgname=nextpnr-ice40-nightly
|
|
pkgver=20240929_nextpnr_0.7_112_g1967db17
|
|
pkgrel=1
|
|
epoch=1
|
|
pkgdesc="nextpnr portable FPGA place and route tool - for ice40"
|
|
arch=("any")
|
|
url="https://github.com/YosysHQ/nextpnr"
|
|
license=("custom:ISC")
|
|
groups=()
|
|
options=("!strip")
|
|
depends=(
|
|
"yosys-nightly"
|
|
"icestorm-nightly"
|
|
"python"
|
|
"boost-libs"
|
|
"qt5-base"
|
|
)
|
|
optdepends=()
|
|
makedepends=("git" "gcc" "cmake" "ninja" "pkgconf" "gawk" "eigen" "boost")
|
|
conflicts=(
|
|
"nextpnr-git"
|
|
"nextpnr-all-nightly"
|
|
)
|
|
replaces=()
|
|
provides=("nextpnr-ice40=$(cut -d _ -f 3 <<< "${pkgver}")")
|
|
source=(
|
|
"nextpnr::git+https://github.com/YosysHQ/nextpnr.git#commit=1967db17"
|
|
)
|
|
sha256sums=(
|
|
"SKIP"
|
|
)
|
|
|
|
_PREFIX="/usr"
|
|
prepare() {
|
|
cd "${srcdir}/nextpnr"
|
|
[ ! -d "${srcdir}/nextpnr/build-ice40" ] && mkdir build-ice40
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/nextpnr"
|
|
cd build-ice40
|
|
cmake -G Ninja \
|
|
-DARCH=ice40 \
|
|
-DBUILD_PYTHON=ON \
|
|
-DBUILD_GUI=ON \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-DCMAKE_INSTALL_PREFIX=${_PREFIX} \
|
|
-DUSE_OPENMP=ON \
|
|
..
|
|
ninja
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/nextpnr"
|
|
DESTDIR="${pkgdir}" PREFIX="${_PREFIX}" ninja -C build-ice40 install
|
|
install -Dm644 "${srcdir}/nextpnr/COPYING" "${pkgdir}${_PREFIX}/share/licenses/nextpnr-ice40/COPYING"
|
|
}
|