[arch-commits] Commit in yosys/trunk (PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Tue Mar 31 17:45:06 UTC 2020


    Date: Tuesday, March 31, 2020 @ 17:45:04
  Author: ffy00
Revision: 608165

upgpkg: yosys 0.9-3 (hardcode build arguments, enable protobuf, build with gcc)

Modified:
  yosys/trunk/PKGBUILD

----------+
 PKGBUILD |   25 ++++++++++++++++++++-----
 1 file changed, 20 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-31 17:21:40 UTC (rev 608164)
+++ PKGBUILD	2020-03-31 17:45:04 UTC (rev 608165)
@@ -5,15 +5,14 @@
 pkgname=yosys
 pkgver=0.9
 _abccommit=2ddc57d8760d94e86699be39a628178cff8154f8
-pkgrel=2
+pkgrel=3
 pkgdesc='A framework for RTL synthesis'
 arch=('x86_64')
 url='http://www.clifford.at/yosys/'
 license=('custom:ISC')
-depends=('bash' 'tcl' 'libffi' 'python')
+depends=('bash' 'tcl' 'libffi' 'python' 'protobuf')
 optdepends=('graphviz: Schematics display support'
             'xdot: Display netlists')
-makedepends=('clang' 'python')
 source=("https://github.com/cliffordwolf/yosys/archive/$pkgname-$pkgver.tar.gz"
         abc-$_abccommit.tar.gz::https://github.com/berkeley-abc/abc/archive/$_abccommit.tar.gz)
 sha512sums=('6ae0f822ca0e3ec749773dae89e948488b698aaa149e73f04604dd899ac403a3073645f0e27382801f5f1a9483d87ef4066fde5dc797181eff06684de7a5b138'
@@ -23,14 +22,30 @@
     ln -s "$srcdir"/abc-$_abccommit $pkgname-$pkgname-$pkgver/abc
 }
 
+_make() {
+    make \
+        PREFIX="/usr" \
+        ABCREV=default \
+        CONFIG=gcc \
+        ENABLE_TCL=1 \
+        ENABLE_ABC=1 \
+        ENABLE_GLOB=1 \
+        ENABLE_PLUGINS=1 \
+        ENABLE_LIBYOSYS=1 \
+        ENABLE_PROTOBUF=1 \
+        ENABLE_ZLIB=1 \
+        ENABLE_PYOSYS=0 $@
+}
+
 build() {
     cd $pkgname-$pkgname-$pkgver
-    make ABCREV=default PREFIX="/usr"
+
+    _make
 }
 
 package() {
     cd $pkgname-$pkgname-$pkgver
-    make ABCREV=default PREFIX="/usr" DESTDIR="$pkgdir" install
+    _make DESTDIR="$pkgdir" install
 
     install -D -m 644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
 }



More information about the arch-commits mailing list