summarylogtreecommitdiffstats
path: root/PKGBUILD.in
diff options
context:
space:
mode:
authorAki Van Ness2021-09-16 20:29:28 -0400
committerAki Van Ness2021-09-16 20:29:28 -0400
commit1fd5054731a9310bacede507c4488b59f961264c (patch)
treede7957b4aa2ed3b05b4ce2d3a0744604816737bf /PKGBUILD.in
downloadaur-1fd5054731a9310bacede507c4488b59f961264c.tar.gz
Bumped nextpnr-generic Version to 67bd349e_20212917
Diffstat (limited to 'PKGBUILD.in')
-rw-r--r--PKGBUILD.in59
1 files changed, 59 insertions, 0 deletions
diff --git a/PKGBUILD.in b/PKGBUILD.in
new file mode 100644
index 00000000000..fb542a8a1b8
--- /dev/null
+++ b/PKGBUILD.in
@@ -0,0 +1,59 @@
+# Maintainer: Aki-nyan <aur@catgirl.link>
+
+pkgname=nextpnr-generic-nightly
+pkgver=@NPR_VER@
+pkgrel=1
+pkgdesc="nextpnr portable FPGA place and route tool - generic"
+arch=("any")
+url="https://github.com/YosysHQ/nextpnr"
+license=("custom:ISC")
+groups=()
+options=("!strip")
+depends=(
+ "yosys-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-generic" ] && mkdir build-generic
+ cd ..
+}
+
+build() {
+ cd "${srcdir}/nextpnr"
+ cd build-ice40
+ cmake -G Ninja \
+ -DARCH=generic \
+ -DBUILD_PYTHON=ON \
+ -DBUILD_GUI=ON \
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+ -DCMAKE_INSTALL_PREFIX=${_PREFIX} \
+ -DUSE_OPENMP=ON \
+ ..
+ cd ..
+ ninja -C build-generic
+ cd ..
+}
+
+package() {
+ cd "${srcdir}/nextpnr"
+ DESTDIR="${pkgdir}" PREFIX="${_PREFIX}" ninja -C build-generic install
+ install -Dm644 "${srcdir}/nextpnr/COPYING" "${pkgdir}${_PREFIX}/share/licenses/nextpnr-generic/COPYING"
+ cd ..
+}