From 94188dc2fd85e376f355af3c394581497518bb09 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Fri, 12 Feb 2021 23:30:38 +0100 Subject: pcr: import fomu-verilog-blink from AUR Signed-off-by: Denis 'GNUtoo' Carikli --- pcr/fomu-verilog-blink/PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 pcr/fomu-verilog-blink/PKGBUILD (limited to 'pcr/fomu-verilog-blink') 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 +# 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}/" +} -- cgit v1.2.3