author | Felix Yan
<felixonmars@archlinux.org> 2020-09-14 14:46:13 UTC |
committer | Felix Yan
<felixonmars@archlinux.org> 2020-09-14 14:46:13 UTC |
parent | b0aaa0762b5271d5d3e6056a720988515bf57311 |
PKGBUILD | +16 | -16 |
diff --git a/PKGBUILD b/PKGBUILD index 0e7571f..9002258 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,28 +4,22 @@ pkgname=yosys pkgver=0.9 -_abccommit=2ddc57d8760d94e86699be39a628178cff8154f8 -pkgrel=5 +pkgrel=6 pkgdesc='A framework for RTL synthesis' arch=('x86_64') url='http://www.clifford.at/yosys/' license=('custom:ISC') -depends=('bash' 'tcl' 'libffi' 'python' 'protobuf') +depends=('abc' 'bash' 'boost-libs' 'tcl' 'libffi' 'python' 'protobuf') +makedepends=('boost') +checkdepends=('iverilog') optdepends=('graphviz: Schematics display support' 'xdot: Display netlists') -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' - '5e5c9b887b89ae40a7b82f6d3c5b28bc0c79375fd2178598d5ddcf281c98ff6d61c73c06bc74cfad1be140722d14ea8deabae6c1c9e6c3cd641b37e6f0b7e805') - -prepare() { - ln -s "$srcdir"/abc-$_abccommit $pkgname-$pkgname-$pkgver/abc -} +source=("https://github.com/cliffordwolf/yosys/archive/$pkgname-$pkgver.tar.gz") +sha512sums=('6ae0f822ca0e3ec749773dae89e948488b698aaa149e73f04604dd899ac403a3073645f0e27382801f5f1a9483d87ef4066fde5dc797181eff06684de7a5b138') _make() { make \ PREFIX="/usr" \ - ABCREV=default \ CONFIG=gcc \ ENABLE_TCL=1 \ ENABLE_ABC=1 \ @@ -34,18 +28,24 @@ _make() { ENABLE_LIBYOSYS=1 \ ENABLE_PROTOBUF=1 \ ENABLE_ZLIB=1 \ - ENABLE_PYOSYS=0 $@ + ENABLE_PYOSYS=1 \ + ABCEXTERNAL=abc \ + BOOST_PYTHON_LIB="-lpython3.8 -lboost_python38" $@ } build() { cd $pkgname-$pkgname-$pkgver - _make } +check() { + cd $pkgname-$pkgname-$pkgver + _make test +} + package() { cd $pkgname-$pkgname-$pkgver - _make DESTDIR="$pkgdir" install + _make DESTDIR="$pkgdir" PYTHON_PREFIX="$pkgdir/usr" install - install -D -m 644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING + install -Dm644 COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/ }