diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-02-12 23:30:38 +0100 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-02-12 23:31:07 +0100 |
commit | 94188dc2fd85e376f355af3c394581497518bb09 (patch) | |
tree | a8e9b2090ebbd69f5ffd7284ed984642af935b1b /pcr/fomu-verilog-blink/PKGBUILD | |
parent | f520e928e418b591a89e5ba1085a64d22f678a54 (diff) | |
download | abslibre-94188dc2fd85e376f355af3c394581497518bb09.tar.gz abslibre-94188dc2fd85e376f355af3c394581497518bb09.tar.bz2 abslibre-94188dc2fd85e376f355af3c394581497518bb09.zip |
pcr: import fomu-verilog-blink from AUR
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'pcr/fomu-verilog-blink/PKGBUILD')
-rw-r--r-- | pcr/fomu-verilog-blink/PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pcr/fomu-verilog-blink/PKGBUILD b/pcr/fomu-verilog-blink/PKGBUILD new file mode 100644 index 000000000..e9944be54 --- /dev/null +++ b/pcr/fomu-verilog-blink/PKGBUILD @@ -0,0 +1,43 @@ +# Copyright (C) 2021 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +pkgname=fomu-verilog-blink +pkgver=0.1 +pkgrel=1 +pkgdesc="Blink test firmwares for the FOMU FPGA boards" +arch=('any') +url='https://github.com/im-tomu/fomu-workshop.git' +license=('Apache') +makedepends=('icestorm-git' + 'nextpnr-git' + 'yosys') +optdepends=('dfu-util: for loading the fimrwares') +source=("https://github.com/im-tomu/fomu-workshop/archive/v${pkgver}.tar.gz" + "LICENSE") # The commit f1c0014 which is right after the v0.1 tag adds the license +sha512sums=('f5a68839a91178e9a3238ba097eec4f6768da691cc0c934619d23ea6d3b964a305f3c831fabecdfa5d12977d9c243a8005e5fa38ddcfd3a5e391d5581e6ab709' + 'SKIP') + +build(){ + cd "$srcdir/fomu-workshop-${pkgver}/verilog-blink" + + for revision in evt1 evt2 evt3 pvt1 hacker ; do + make FOMU_REV="${revision}" + cp blink.dfu blink-${revision}.dfu + done +} + +package(){ + cd "$srcdir/fomu-workshop-${pkgver}/verilog-blink" + + install -d "${pkgdir}/usr/share/${pkgname}/" + + for revision in evt1 evt2 evt3 pvt1 hacker ; do + install blink-${revision}.dfu "${pkgdir}/usr/share/${pkgname}/" + done + + install -d "${pkgdir}/usr/share/licenses/${pkgname}/" + install ${srcdir}/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/" +} |