diff options
author | Aki Van Ness | 2024-04-11 08:13:29 +0200 |
---|---|---|
committer | Aki Van Ness | 2024-04-11 08:13:29 +0200 |
commit | ea2723999036b928ced967a29d80885458507f2d (patch) | |
tree | 7e68246786730202dae03fce8443004e9e1e6082 /PKGBUILD.in | |
download | aur-ea2723999036b928ced967a29d80885458507f2d.tar.gz |
Bumpped nextpnr-machxo2 version to 20240411_nextpnr_0.7_26_gd3b53d8e
Diffstat (limited to 'PKGBUILD.in')
-rw-r--r-- | PKGBUILD.in | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/PKGBUILD.in b/PKGBUILD.in new file mode 100644 index 000000000000..4aa46af6fbb3 --- /dev/null +++ b/PKGBUILD.in @@ -0,0 +1,58 @@ +# Maintainer: Aki-nyan <aur@catgirl.link> + +pkgname=nextpnr-machxo2-nightly +pkgver=@EDA_VER@ +pkgrel=1 +epoch=1 +pkgdesc="nextpnr portable FPGA place and route tool - for machxo2" +arch=("x86_64") +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" "boost") +conflicts=( + "nextpnr-git" + "nextpnr-all-nightly" +) +replaces=() +source=( + "nextpnr::git+https://github.com/YosysHQ/nextpnr.git#commit=@EDA_HASH@" +) +sha256sums=( + "SKIP" +) + +_PREFIX="/usr" +prepare() { + cd "${srcdir}/nextpnr" + [ ! -d "${srcdir}/nextpnr/build-machxo2" ] && mkdir build-machxo2 +} + +build() { + cd "${srcdir}/nextpnr" + cd build-machxo2 + cmake -G Ninja \ + -DARCH=machxo2 \ + -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-machxo2 install + install -Dm644 "${srcdir}/nextpnr/COPYING" "${pkgdir}${_PREFIX}/share/licenses/nextpnr-machxo2/COPYING" +} |