PKGBUILD 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Maintainer(AUR): Graham Edgecombe <gpe@grahamedgecombe.com>
  2. # parabola changes and rationale:
  3. # - Add armv7h support
  4. # Maintainer : Sagar Acharya <sagar@hyperbola.info>
  5. pkgname=nextpnr
  6. pkgver=0.2
  7. pkgrel=1
  8. pkgdesc='Portable FPGA place and route tool'
  9. arch=('armv7h' 'i686' 'x86_64')
  10. url='https://github.com/YosysHQ/nextpnr'
  11. license=('ISC')
  12. depends=('boost-libs' 'python' 'qt-base')
  13. makedepends=('boost' 'cmake' 'eigen' 'git' 'icestorm' 'prjtrellis' 'prjtrellis-db')
  14. source=("https://github.com/YosysHQ/nextpnr/archive/${pkgname}-${pkgver}.tar.gz")
  15. sha512sums=('fd7346a55a63e7ca5e9197e5a9befebc148ed6dfed3aef0841896fd97b5c16689ea27432af572c11daef5b53867f92c279076e10ecb8ae3c50911db4325c69b0')
  16. build() {
  17. cd "$srcdir/${pkgname}-${pkgname}-${pkgver}"
  18. mkdir -p build
  19. cd build
  20. cmake \
  21. -DARCH=generic\;ice40 \
  22. -DICEBOX_ROOT=/usr/share/icebox \
  23. -DTRELLIS_INSTALL_PREFIX=/usr \
  24. -DBUILD_TESTS=ON \
  25. -DCMAKE_BUILD_TYPE=RelWithDebInfo \
  26. -DCMAKE_INSTALL_PREFIX=/usr \
  27. -DUSE_OPENMP=ON \
  28. -DBUILD_GUI=ON \
  29. ..
  30. make
  31. }
  32. check() {
  33. cd "$srcdir/${pkgname}-${pkgname}-${pkgver}/build"
  34. make test
  35. }
  36. package() {
  37. cd "$srcdir/${pkgname}-${pkgname}-${pkgver}/build"
  38. make DESTDIR="$pkgdir" install
  39. install -Dm644 ../COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
  40. }