diff options
author | Aki Van Ness | 2021-09-16 20:17:52 -0400 |
---|---|---|
committer | Aki Van Ness | 2021-09-16 20:17:52 -0400 |
commit | d66b7dc5daa688a74d173d035b84e40d8d06ffbf (patch) | |
tree | e23c431687f040dce6ce06c55cb0f66af8fcc0aa /PKGBUILD.in | |
download | aur-d66b7dc5daa688a74d173d035b84e40d8d06ffbf.tar.gz |
Bumped nextpnr-ecp5 Version to 67bd349e_20211717
Diffstat (limited to 'PKGBUILD.in')
-rw-r--r-- | PKGBUILD.in | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/PKGBUILD.in b/PKGBUILD.in new file mode 100644 index 000000000000..8929882132a1 --- /dev/null +++ b/PKGBUILD.in @@ -0,0 +1,60 @@ +# Maintainer: Aki-nyan <aur@catgirl.link> + +pkgname=nextpnr-ecp5-nightly +pkgver=@NPR_VER@ +pkgrel=1 +pkgdesc="nextpnr portable FPGA place and route tool - for ecp5" +arch=("any") +url="https://github.com/YosysHQ/nextpnr" +license=("custom:ISC") +groups=() +options=("!strip") +depends=( + "yosys-nightly" + "prjtrellis-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-ecp5" ] && mkdir build-ecp5 + cd .. +} + +build() { + cd "${srcdir}/nextpnr" + cd build-ice40 + cmake -G Ninja \ + -DARCH=ecp5 \ + -DBUILD_PYTHON=ON \ + -DBUILD_GUI=ON \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_INSTALL_PREFIX=${_PREFIX} \ + -DUSE_OPENMP=ON \ + .. + cd .. + ninja -C build-ecp5 + cd .. +} + +package() { + cd "${srcdir}/nextpnr" + DESTDIR="${pkgdir}" PREFIX="${_PREFIX}" ninja -C build-ecp5 install + install -Dm644 "${srcdir}/nextpnr/COPYING" "${pkgdir}${_PREFIX}/share/licenses/nextpnr-ecp5/COPYING" + cd .. +} |