PKGBUILD 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Maintainer (AUR): Sebastian Bøe <sebastianbooe@gmail.com>
  2. # parabola changes and rationale:
  3. # - Added armv7h and i686 architectures support
  4. # Maintainer: Sagar Acharya <sagar@hyperbola.info>
  5. pkgname=icestorm-git
  6. pkgver=r20210309
  7. _commit=c495861c19bd0976c88d4964f912abe76f3901c3
  8. pkgrel=1
  9. pkgdesc="Lattice iCE40 FPGAs Bitstream Documentation (Reverse Engineered)"
  10. arch=('armv7h' 'i686' 'x86_64')
  11. url="http://www.clifford.at/icestorm/"
  12. license=('ISC')
  13. depends=('python' 'libftdi')
  14. makedepends=('git')
  15. provides=("${pkgname%-git}")
  16. conflicts=("${pkgname%-git}")
  17. source=("https://github.com/YosysHQ/icestorm/archive/${_commit}.tar.gz")
  18. sha512sums=('17cfce499173dffa0ae7d4564b89c0e28ef32a80534c07bf099958981e487db1ec6c35c6b82376e5513f9fe79f67a3e7dd360203512cd43686e52d47ae7f073a')
  19. _prefix="/usr"
  20. build() {
  21. cd "$srcdir/${pkgname%-git}-${_commit}"
  22. # Icestorm defaults to clang.
  23. CXX=gcc
  24. make CXX=$CXX PREFIX=$_prefix
  25. }
  26. package() {
  27. cd "$srcdir/${pkgname%-git}-${_commit}"
  28. install -Dm644 COPYING -t $pkgdir/usr/share/licenses/$pkgname
  29. install -m 644 README "$pkgdir/usr/share/licenses/$pkgname"
  30. # Install the package
  31. make DESTDIR="$pkgdir" PREFIX=$_prefix install
  32. }