PKGBUILD 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Maintainer(Arch): Felix Yan <felixonmars@archlinux.org>
  2. # Contributor: Benoît Allard <benoit dot allard at gmx dot de>
  3. # Contributor: killruana <killruana@gmail.com>
  4. # Maintainer: Sagar Acharya <sagar@hyperbola.info>
  5. pkgname=yosys
  6. pkgver=0.14
  7. pkgrel=1
  8. pkgdesc='A framework for RTL synthesis'
  9. arch=('x86_64')
  10. url='http://www.clifford.at/yosys/'
  11. license=('ISC')
  12. depends=('abc' 'bash' 'boost-libs' 'tcl' 'libffi' 'python' 'protobuf')
  13. makedepends=('boost')
  14. checkdepends=('iverilog')
  15. optdepends=('graphviz: Schematics display support'
  16. 'xdot: Display netlists')
  17. source=("https://github.com/YosysHQ/yosys/archive/refs/tags/$pkgname-$pkgver.tar.gz")
  18. sha512sums=('a32af50328e6d294b565cab7a0938f795bddf02540fa5a3bc709fc4826450745049776fe1f1d3f829c6f73bbca5e5f690337b06ce0d613362b478234a5f3fcc7')
  19. _make() {
  20. make \
  21. PREFIX="/usr" \
  22. CONFIG=gcc \
  23. ENABLE_TCL=1 \
  24. ENABLE_ABC=1 \
  25. ENABLE_GLOB=1 \
  26. ENABLE_PLUGINS=1 \
  27. ENABLE_LIBYOSYS=1 \
  28. ENABLE_PROTOBUF=1 \
  29. ENABLE_ZLIB=1 \
  30. ENABLE_PYOSYS=1 \
  31. ABCEXTERNAL=abc \
  32. BOOST_PYTHON_LIB="-lpython3.8 -lboost_python38" $@
  33. }
  34. build() {
  35. cd $pkgname-$pkgname-$pkgver
  36. _make
  37. }
  38. #check() {
  39. # cd $pkgname-$pkgname-$pkgver
  40. # _make test
  41. #}
  42. package() {
  43. cd $pkgname-$pkgname-$pkgver
  44. _make DESTDIR="$pkgdir" PYTHON_PREFIX="$pkgdir/usr" install
  45. install -Dm644 COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/
  46. }