diff options
author | Xiretza | 2020-01-01 22:42:46 +0100 |
---|---|---|
committer | Xiretza | 2020-01-01 22:42:46 +0100 |
commit | 9679417da7c4e83db0432c42b8c1e55bc12fd006 (patch) | |
tree | cc0f67a7e5868324fad3ca7e53a693d8ce2f3f31 /PKGBUILD | |
download | aur-9679417da7c4e83db0432c42b8c1e55bc12fd006.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d5d5b4033c66 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: xiretza <xiretza+aur@xiretza.xyz> + +pkgname=ghdlsynth-beta-git +pkgver=r102.175123c +pkgrel=1 +arch=('x86_64') +pkgdesc='VHDL synthesis (based on ghdl)' +url='https://github.com/tgingold/ghdlsynth-beta' +license=('GPL3') + +provides=('ghdlsynth-beta' 'ghdlsynth') +conflicts=('ghdlsynth-beta' 'ghdlsynth') +makedepends=('git' 'yosys' 'clang') +depends=('ghdl>0.36' 'yosys' 'gcc-libs') + +source=("ghdlsynth::git://github.com/tgingold/ghdlsynth-beta.git") +sha256sums=('SKIP') + +pkgver() { + cd "${srcdir}/ghdlsynth" + + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${srcdir}/ghdlsynth" + + make ghdl.so +} + +package() { + cd "${srcdir}/ghdlsynth" + + install -Dm755 -t "$pkgdir/$(yosys-config --datdir)/plugins/" ghdl.so + install -dm755 "$pkgdir/usr/share/ghdlsynth/examples/" + cp -r ice40hx8k icestick icezum "$pkgdir/usr/share/ghdlsynth/examples/" +} |