[arch-commits] Commit in ghdl/repos/community-x86_64 (PKGBUILD PKGBUILD)

2020-05-17 Thread Filipe Laíns via arch-commits
Date: Sunday, May 17, 2020 @ 22:54:32
  Author: ffy00
Revision: 629115

archrelease: copy trunk to community-x86_64

Added:
  ghdl/repos/community-x86_64/PKGBUILD
(from rev 629114, ghdl/trunk/PKGBUILD)
Deleted:
  ghdl/repos/community-x86_64/PKGBUILD

--+
 PKGBUILD |  343 +++--
 1 file changed, 179 insertions(+), 164 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2020-05-17 22:54:23 UTC (rev 629114)
+++ PKGBUILD2020-05-17 22:54:32 UTC (rev 629115)
@@ -1,164 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) 
-
-pkgbase=ghdl
-pkgname=('ghdl-mcode' 'ghdl-llvm' 'ghdl-gcc')
-_gcc=9.3.0
-_isl=0.22
-pkgver=0.37
-pkgrel=8
-pkgdesc='VHDL simulator'
-arch=('x86_64')
-url='https://github.com/ghdl/ghdl'
-license=('GPL2')
-depends=('gcc-ada')
-makedepends=('gmp' 'mpfr' 'libmpc' 'zlib' 'llvm' 'clang')
-provides=('ghdl')
-conflicts=('ghdl')
-validpgpkeys=('33C235A34C46AA3FFB293709A328C3A2C3C45C06') # Jakub Jelinek 

-source=("$pkgbase-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
-"https://ftp.gnu.org/gnu/gcc/gcc-$_gcc/gcc-$_gcc.tar.xz"{,.sig}
-"http://isl.gforge.inria.fr/isl-$_isl.tar.bz2";
-
"fix-llvm10.patch::$url/commit/cfb359f0b05e9042c1045213b93b09e465fa8ccc.patch")
-sha512sums=('1ecb12379a99948740e795a51a5a7454a4231064e20b779355c4450ee6b3f6622285b6aa9b9cc53fc23352b1a017f0c735d7e567f42fbfff54d697c4cc0b6be9'
-
'4b9e3639eef6e623747a22c37a904b4750c93b6da77cf3958d5047e9b5ebddb7eebe091cc16ca0a227c0ecbd2bf3b984b221130f269a97ee4cc18f9cf6c444de'
-'SKIP'
-
'fc2c9796979610dd51143dcefe4f5c989c4354571cc5a1fcc6b932fd41f42a54f6b43adfd289af61be7bd06f3a523fa6a7d7ee56680e32d8036beb4c188fa668'
-
'67aff7e7bdcf4b517074a3f436ee2b1fc9b4b1d9d618fe6df0b7819cb44471d051682b1c78e95ce67616563e0714a6297c9936af79d784d49778a8a9cbdad36b')
-
-export GNATMAKE="gnatmake $MAKEFLAGS"
-
-prepare() {
-  cd $pkgbase-$pkgver
-
-  patch -p1 -i ../fix-llvm10.patch
-
-  cd "$srcdir"
-
-  cp -r $pkgbase-$pkgver ghdl-mcode
-  cp -r $pkgbase-$pkgver ghdl-llvm
-  cp -r $pkgbase-$pkgver ghdl-gcc
-
-  mkdir gcc-build
-
-  cd gcc-$_gcc
-
-  ln -s ../isl-$_isl isl
-
-  echo $_gcc > gcc/BASE-VER
-
-  # hack! - some configure tests for header files using "$CPP $CPPFLAGS"
-  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure
-}
-
-_configure() {
-  ./configure \
-  --prefix=/usr \
-  --disable-werror \
-  --enable-checks \
-  --enable-libghdl \
-  --enable-openieee \
-  --enable-synth $@
-}
-
-build() {
-  echo 'Building ghdl-mcode...'
-  cd "$srcdir"/ghdl-mcode
-
-  _configure
-
-  make
-
-  echo 'Building ghdl-llvm...'
-  cd "$srcdir"/ghdl-llvm
-
-  _configure --with-llvm-config
-
-  make
-
-  echo 'Building ghdl-gcc...'
-  cd "$srcdir"/ghdl-gcc
-
-  _configure --with-gcc="$srcdir"/gcc-$_gcc
-
-  make copy-sources
-
-  cd "$srcdir"/gcc-build
-
-  "$srcdir"/gcc-$_gcc/configure \
-  --prefix=/usr \
-  --libdir=/usr/lib \
-  --libexecdir=/usr/lib \
-  --enable-languages=vhdl \
-  --enable-default-pie \
-  --enable-default-ssp \
-  --with-isl \
-  --enable-plugin \
-  --enable-lto \
-  --disable-bootstrap \
-  --disable-multilib \
-  --disable-libada \
-  --disable-libsanitizer \
-  --disable-libssp \
-  --disable-libquadmath \
-  --disable-libgomp \
-  --disable-libvtv \
-  --with-pkgversion='Arch Linux Repositories' \
-  --with-bugurl='https://bugs.archlinux.org/'
-
-  make
-
-  cd "$srcdir"/ghdl-gcc
-
-  make \
-  GHDL_GCC_BIN="$srcdir"/gcc-build/gcc/ghdl \
-  GHDL1_GCC_BIN="--GHDL1=$srcdir/gcc-build/gcc/ghdl1" \
-  ghdllib
-}
-
-package_ghdl-mcode() {
-  pkgdesc="$pkgdesc (mcode backend)"
-
-  cd $pkgname
-
-  make DESTDIR="$pkgdir" install
-}
-
-package_ghdl-llvm() {
-  pkgdesc="$pkgdesc (LLVM backend)"
-  depends+=('llvm-libs')
-  options=(!emptydirs)
-
-  cd $pkgname
-
-  make DESTDIR="$pkgdir" install
-
-  # strip binaries
-  find "$pkgdir"/usr/bin/ -type f -and \( -executable -o -name '*.o' \) -exec 
strip '{}' \;
-}
-
-package_ghdl-gcc() {
-  pkgdesc="$pkgdesc (GCC backend)"
-  options=(!emptydirs)
-
-  cd "$srcdir"/gcc-build
-
-  make DESTDIR="$pkgdir" install
-
-  # Remove files that conflict with the system gcc -- we only want to install 
the ghdl plugin
-  for FILE in $(find "$pkgdir" -not -type d); do
-if [ -f /"${FILE#"$pkgdir"}" ]; then
-  rm -f "$FILE"
-fi
-  done
-
-  find "$pkgdir"/usr/share -not -type d -not -name '*ghdl*' -delete
-  rm -rf "$pkgdir"/usr/lib64
-
-  # strip binaries
-  find "$pkgdir"/usr/bin/ "$pkgdir"/usr/lib/gcc -type f -and \( -executable -o 
-name '*.o' \) -exec strip '{}' \;
-
-  cd "$srcdir"/ghdl-gcc
-
-  make DESTDIR="$pkgdir" install
-}
-

Copied: ghdl/repos/community-x86_64/PKGBUILD (from rev 629114, 
ghdl/trunk/PKGBUILD)
===

[arch-commits] Commit in ghdl/repos/community-x86_64 (PKGBUILD PKGBUILD)

2020-04-19 Thread Filipe Laíns via arch-commits
Date: Sunday, April 19, 2020 @ 16:44:34
  Author: ffy00
Revision: 616517

archrelease: copy trunk to community-x86_64

Added:
  ghdl/repos/community-x86_64/PKGBUILD
(from rev 616516, ghdl/trunk/PKGBUILD)
Deleted:
  ghdl/repos/community-x86_64/PKGBUILD

--+
 PKGBUILD |  328 ++---
 1 file changed, 164 insertions(+), 164 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2020-04-19 16:44:23 UTC (rev 616516)
+++ PKGBUILD2020-04-19 16:44:34 UTC (rev 616517)
@@ -1,164 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) 
-
-pkgbase=ghdl
-pkgname=('ghdl-mcode' 'ghdl-llvm' 'ghdl-gcc')
-_gcc=9.3.0
-_isl=0.22
-pkgver=0.37
-pkgrel=7
-pkgdesc='VHDL simulator'
-arch=('x86_64')
-url='https://github.com/ghdl/ghdl'
-license=('GPL2')
-depends=('gcc-ada')
-makedepends=('gmp' 'mpfr' 'libmpc' 'zlib' 'llvm' 'clang')
-provides=('ghdl')
-conflicts=('ghdl')
-validpgpkeys=('33C235A34C46AA3FFB293709A328C3A2C3C45C06') # Jakub Jelinek 

-source=("$pkgbase-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
-"https://ftp.gnu.org/gnu/gcc/gcc-$_gcc/gcc-$_gcc.tar.xz"{,.sig}
-"http://isl.gforge.inria.fr/isl-$_isl.tar.bz2";
-
"fix-llvm10.patch::$url/commit/cfb359f0b05e9042c1045213b93b09e465fa8ccc.patch")
-sha512sums=('1ecb12379a99948740e795a51a5a7454a4231064e20b779355c4450ee6b3f6622285b6aa9b9cc53fc23352b1a017f0c735d7e567f42fbfff54d697c4cc0b6be9'
-
'4b9e3639eef6e623747a22c37a904b4750c93b6da77cf3958d5047e9b5ebddb7eebe091cc16ca0a227c0ecbd2bf3b984b221130f269a97ee4cc18f9cf6c444de'
-'SKIP'
-
'fc2c9796979610dd51143dcefe4f5c989c4354571cc5a1fcc6b932fd41f42a54f6b43adfd289af61be7bd06f3a523fa6a7d7ee56680e32d8036beb4c188fa668'
-
'67aff7e7bdcf4b517074a3f436ee2b1fc9b4b1d9d618fe6df0b7819cb44471d051682b1c78e95ce67616563e0714a6297c9936af79d784d49778a8a9cbdad36b')
-
-export GNATMAKE="gnatmake $MAKEFLAGS"
-
-prepare() {
-  cd $pkgbase-$pkgver
-
-  patch -p1 -i ../fix-llvm10.patch
-
-  cd "$srcdir"
-
-  cp -r $pkgbase-$pkgver ghdl-mcode
-  cp -r $pkgbase-$pkgver ghdl-llvm
-  cp -r $pkgbase-$pkgver ghdl-gcc
-
-  mkdir gcc-build
-
-  cd gcc-$_gcc
-
-  ln -s ../isl-$_isl isl
-
-  echo $_gcc > gcc/BASE-VER
-
-  # hack! - some configure tests for header files using "$CPP $CPPFLAGS"
-  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure
-}
-
-_configure() {
-  ./configure \
-  --prefix=/usr \
-  --disable-werror \
-  --enable-checks \
-  --enable-libghdl \
-  --enable-openieee \
-  --enable-synth $@
-}
-
-build() {
-  echo 'Building ghdl-mcode...'
-  cd "$srcdir"/ghdl-mcode
-
-  _configure
-
-  make
-
-  echo 'Building ghdl-llvm...'
-  cd "$srcdir"/ghdl-llvm
-
-  _configure --with-llvm-config
-
-  make
-
-  echo 'Building ghdl-gcc...'
-  cd "$srcdir"/ghdl-gcc
-
-  _configure --with-gcc="$srcdir"/gcc-$_gcc
-
-  make copy-sources
-
-  cd "$srcdir"/gcc-build
-
-  "$srcdir"/gcc-$_gcc/configure \
-  --prefix=/usr \
-  --libdir=/usr/lib \
-  --libexecdir=/usr/lib \
-  --enable-languages=vhdl \
-  --enable-default-pie \
-  --enable-default-ssp \
-  --with-isl \
-  --enable-plugin \
-  --enable-lto \
-  --disable-bootstrap \
-  --disable-multilib \
-  --disable-libada \
-  --disable-libsanitizer \
-  --disable-libssp \
-  --disable-libquadmath \
-  --disable-libgomp \
-  --disable-libvtv \
-  --with-pkgversion='Arch Linux Repositories' \
-  --with-bugurl='https://bugs.archlinux.org/'
-
-  make
-
-  cd "$srcdir"/ghdl-gcc
-
-  make \
-  GHDL_GCC_BIN="$srcdir"/gcc-build/gcc/ghdl \
-  GHDL1_GCC_BIN="--GHDL1=$srcdir/gcc-build/gcc/ghdl1" \
-  ghdllib
-}
-
-package_ghdl-mcode() {
-  pkgdesc="$pkgdesc (mcode backend)"
-
-  cd $pkgname
-
-  make DESTDIR="$pkgdir" install
-}
-
-package_ghdl-llvm() {
-  pkgdesc="$pkgdesc (LLVM backend)"
-  depends+=('llvm-libs')
-  options=(!emptydirs)
-
-  cd $pkgname
-
-  make DESTDIR="$pkgdir" install
-
-  # strip binaries
-  find "$pkgdir"/usr/bin/ "$pkgdir"/usr/lib/ghdl -type f -and \( -executable 
-o -name '*.o' \) -exec strip '{}' \;
-}
-
-package_ghdl-gcc() {
-  pkgdesc="$pkgdesc (GCC backend)"
-  options=(!emptydirs)
-
-  cd "$srcdir"/gcc-build
-
-  make DESTDIR="$pkgdir" install
-
-  # Remove files that conflict with the system gcc -- we only want to install 
the ghdl plugin
-  for FILE in $(find "$pkgdir" -not -type d); do
-if [ -f /"${FILE#"$pkgdir"}" ]; then
-  rm -f "$FILE"
-fi
-  done
-
-  find "$pkgdir"/usr/share -not -type d -not -name '*ghdl*' -delete
-  rm -rf "$pkgdir"/usr/lib64
-
-  # strip binaries
-  find "$pkgdir"/usr/bin/ "$pkgdir"/usr/lib/gcc -type f -and \( -executable -o 
-name '*.o' \) -exec strip '{}' \;
-
-  cd "$srcdir"/ghdl-gcc
-
-  make DESTDIR="$pkgdir" install
-}
-

Copied: ghdl/repos/community-x86_64/PKGBUILD (from rev 616516, 
ghdl/trunk/PKGBUILD)
==

[arch-commits] Commit in ghdl/repos/community-x86_64 (PKGBUILD PKGBUILD)

2020-04-17 Thread Filipe Laíns via arch-commits
Date: Friday, April 17, 2020 @ 23:48:28
  Author: ffy00
Revision: 616019

archrelease: copy trunk to community-x86_64

Added:
  ghdl/repos/community-x86_64/PKGBUILD
(from rev 616018, ghdl/trunk/PKGBUILD)
Deleted:
  ghdl/repos/community-x86_64/PKGBUILD

--+
 PKGBUILD |  333 ++---
 1 file changed, 164 insertions(+), 169 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2020-04-17 23:48:19 UTC (rev 616018)
+++ PKGBUILD2020-04-17 23:48:28 UTC (rev 616019)
@@ -1,169 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) 
-
-pkgbase=ghdl
-pkgname=('ghdl-mcode' 'ghdl-llvm' 'ghdl-gcc')
-_gcc=9.3.0
-_isl=0.22
-pkgver=0.37
-pkgrel=4
-pkgdesc='VHDL simulator'
-arch=('x86_64')
-url='https://github.com/ghdl/ghdl'
-license=('GPL2')
-depends=('gcc-ada')
-makedepends=('gmp' 'mpfr' 'libmpc' 'zlib' 'llvm' 'clang')
-provides=('ghdl')
-conflicts=('ghdl')
-validpgpkeys=('33C235A34C46AA3FFB293709A328C3A2C3C45C06') # Jakub Jelinek 

-source=("$pkgbase-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
-"https://ftp.gnu.org/gnu/gcc/gcc-$_gcc/gcc-$_gcc.tar.xz"{,.sig}
-"http://isl.gforge.inria.fr/isl-$_isl.tar.bz2";
-
"fix-llvm10.patch::$url/commit/cfb359f0b05e9042c1045213b93b09e465fa8ccc.patch")
-sha512sums=('1ecb12379a99948740e795a51a5a7454a4231064e20b779355c4450ee6b3f6622285b6aa9b9cc53fc23352b1a017f0c735d7e567f42fbfff54d697c4cc0b6be9'
-
'4b9e3639eef6e623747a22c37a904b4750c93b6da77cf3958d5047e9b5ebddb7eebe091cc16ca0a227c0ecbd2bf3b984b221130f269a97ee4cc18f9cf6c444de'
-'SKIP'
-
'fc2c9796979610dd51143dcefe4f5c989c4354571cc5a1fcc6b932fd41f42a54f6b43adfd289af61be7bd06f3a523fa6a7d7ee56680e32d8036beb4c188fa668'
-
'67aff7e7bdcf4b517074a3f436ee2b1fc9b4b1d9d618fe6df0b7819cb44471d051682b1c78e95ce67616563e0714a6297c9936af79d784d49778a8a9cbdad36b')
-
-export GNATMAKE="gnatmake $MAKEFLAGS"
-
-prepare() {
-  cd $pkgbase-$pkgver
-
-  patch -p1 -i ../fix-llvm10.patch
-
-  cd "$srcdir"
-
-  cp -r $pkgbase-$pkgver ghdl-mcode
-  cp -r $pkgbase-$pkgver ghdl-llvm
-  cp -r $pkgbase-$pkgver ghdl-gcc
-
-  mkdir gcc-build
-
-  cd gcc-$_gcc
-
-  ln -s ../isl-$_isl isl
-
-  echo $_gcc > gcc/BASE-VER
-
-  # hack! - some configure tests for header files using "$CPP $CPPFLAGS"
-  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure
-}
-
-build() {
-  echo 'Building ghdl-mcode...'
-  cd "$srcdir"/ghdl-mcode
-
-  ./configure \
-  --prefix=/usr \
-  --disable-werror \
-  --enable-checks \
-  --enable-libghdl \
-  --enable-openieee \
-  --enable-synth
-
-  make
-
-  echo 'Building ghdl-llvm...'
-  cd "$srcdir"/ghdl-llvm
-
-  ./configure \
-  --prefix=/usr \
-  --with-llvm-config \
-  --disable-werror \
-  --enable-checks \
-  --enable-libghdl \
-  --enable-openieee \
-  --enable-synth
-
-  make
-
-  echo 'Building ghdl-gcc...'
-  cd "$srcdir"/ghdl-gcc
-
-  ./configure \
-  --prefix=/usr \
-  --with-gcc="$srcdir"/gcc-$_gcc \
-  --disable-werror \
-  --enable-checks \
-  --enable-libghdl \
-  --enable-openieee \
-  --enable-synth
-
-  make copy-sources
-
-  cd "$srcdir"/gcc-build
-
-  "$srcdir"/gcc-$_gcc/configure \
-  --prefix=/usr \
-  --libdir=/usr/lib \
-  --libexecdir=/usr/lib \
-  --enable-languages=vhdl \
-  --enable-default-pie \
-  --enable-default-ssp \
-  --with-system-zlib \
-  --with-isl \
-  --disable-bootstrap \
-  --disable-lto \
-  --disable-multilib \
-  --disable-libssp \
-  --disable-libgomp \
-  --disable-libquadmath \
-  --with-pkgversion='Arch Linux Repositories' \
-  --with-bugurl='https://bugs.archlinux.org/'
-
-  make
-
-  cd "$srcdir"/ghdl-gcc
-
-  make \
-  GHDL_GCC_BIN="$srcdir"/gcc-build/gcc/ghdl \
-  GHDL1_GCC_BIN="--GHDL1=$srcdir/gcc-build/gcc/ghdl1" \
-  ghdllib
-}
-
-package_ghdl-mcode() {
-  pkgdesc="$pkgdesc (mcode backend)"
-
-  cd $pkgname
-
-  make DESTDIR="$pkgdir" install
-}
-
-package_ghdl-llvm() {
-  pkgdesc="$pkgdesc (LLVM backend)"
-  depends+=('llvm-libs')
-
-  cd $pkgname
-
-  make DESTDIR="$pkgdir" install
-
-  # strip binaries
-  find "$pkgdir"/usr/bin/ "$pkgdir"/usr/lib/ghdl -type f -and \( -executable 
-o -name '*.o' \) -exec strip '{}' \;
-}
-
-package_ghdl-gcc() {
-  pkgdesc="$pkgdesc (GCC backend)"
-  options=(!emptydirs)
-
-  cd "$srcdir"/gcc-build
-
-  mkdir "$srcdir"/dest
-  make DESTDIR="$srcdir"/dest install
-
-  # manually install the files
-  install -dm 755 "$pkgdir"/usr/{bin,lib/{ghdl,gcc/x86_64-pc-linux-gnu/$_gcc}}
-  install -Dm 755 "$srcdir"/dest/usr/bin/ghdl "$pkgdir"/usr/bin/ghdl
-  install -Dm 644 "$srcdir"/dest/usr/lib/ghdl/libbacktrace.a 
"$pkgdir"/usr/lib/ghdl/libbacktrace.a
-  install -Dm 644 "$srcdir"/dest/usr/share/info/ghdl.info 
"$pkgdir"/usr/share/info/ghdl.info
-  install -Dm 644 "$srcdir"/dest/usr/lib/gcc/x86_64-pc-linux

[arch-commits] Commit in ghdl/repos/community-x86_64 (PKGBUILD PKGBUILD)

2020-04-12 Thread Filipe Laíns via arch-commits
Date: Sunday, April 12, 2020 @ 15:29:11
  Author: ffy00
Revision: 613424

archrelease: copy trunk to community-x86_64

Added:
  ghdl/repos/community-x86_64/PKGBUILD
(from rev 613423, ghdl/trunk/PKGBUILD)
Deleted:
  ghdl/repos/community-x86_64/PKGBUILD

--+
 PKGBUILD |  315 -
 1 file changed, 169 insertions(+), 146 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2020-04-12 15:29:06 UTC (rev 613423)
+++ PKGBUILD2020-04-12 15:29:11 UTC (rev 613424)
@@ -1,146 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) 
-
-pkgbase=ghdl
-pkgname=('ghdl-mcode' 'ghdl-llvm' 'ghdl-gcc')
-_gcc=9.3.0
-_isl=0.22
-pkgver=0.37
-pkgrel=1
-pkgdesc='VHDL simulator'
-arch=('x86_64')
-url='https://github.com/ghdl/ghdl'
-license=('GPL2')
-depends=('gcc-ada')
-makedepends=('gmp' 'mpfr' 'libmpc' 'zlib' 'llvm' 'clang')
-provides=('ghdl')
-conflicts=('ghdl')
-validpgpkeys=('33C235A34C46AA3FFB293709A328C3A2C3C45C06') # Jakub Jelinek 

-source=("$pkgbase-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
-"https://ftp.gnu.org/gnu/gcc/gcc-$_gcc/gcc-$_gcc.tar.xz"{,.sig}
-"http://isl.gforge.inria.fr/isl-$_isl.tar.bz2";)
-sha512sums=('1ecb12379a99948740e795a51a5a7454a4231064e20b779355c4450ee6b3f6622285b6aa9b9cc53fc23352b1a017f0c735d7e567f42fbfff54d697c4cc0b6be9'
-
'4b9e3639eef6e623747a22c37a904b4750c93b6da77cf3958d5047e9b5ebddb7eebe091cc16ca0a227c0ecbd2bf3b984b221130f269a97ee4cc18f9cf6c444de'
-'SKIP'
-
'fc2c9796979610dd51143dcefe4f5c989c4354571cc5a1fcc6b932fd41f42a54f6b43adfd289af61be7bd06f3a523fa6a7d7ee56680e32d8036beb4c188fa668')
-
-prepare() {
-  cp -r $pkgbase-$pkgver ghdl-mcode
-  cp -r $pkgbase-$pkgver ghdl-llvm
-  cp -r $pkgbase-$pkgver ghdl-gcc
-
-  mkdir gcc-build
-
-  cd gcc-$_gcc
-
-  ln -s ../isl-$_isl isl
-
-  echo $_gcc > gcc/BASE-VER
-
-  # hack! - some configure tests for header files using "$CPP $CPPFLAGS"
-  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure
-}
-
-build() {
-  echo 'Building ghdl-mcode...'
-  cd "$srcdir"/ghdl-mcode
-
-  ./configure \
-  --prefix=/usr \
-  --disable-werror \
-  --enable-checks \
-  --enable-libghdl \
-  --enable-openieee \
-  --enable-synth
-
-  make
-
-  echo 'Building ghdl-llvm...'
-  cd "$srcdir"/ghdl-llvm
-
-  ./configure \
-  --prefix=/usr \
-  --with-llvm-config \
-  --disable-werror \
-  --enable-checks \
-  --enable-libghdl \
-  --enable-openieee \
-  --enable-synth
-
-  make
-
-  echo 'Building ghdl-gcc...'
-  cd "$srcdir"/ghdl-gcc
-
-  ./configure \
-  --prefix=/usr \
-  --with-gcc="$srcdir"/gcc-$_gcc \
-  --disable-werror \
-  --enable-checks \
-  --enable-libghdl \
-  --enable-openieee \
-  --enable-synth
-
-  make copy-sources
-
-  cd "$srcdir"/gcc-build
-
-  "$srcdir"/gcc-$_gcc/configure \
-  --prefix=/usr \
-  --libdir=/usr/lib \
-  --libexecdir=/usr/lib \
-  --enable-languages=vhdl \
-  --enable-default-pie \
-  --with-system-zlib \
-  --with-isl \
-  --disable-bootstrap \
-  --disable-lto \
-  --disable-multilib \
-  --disable-libssp \
-  --disable-libgomp \
-  --disable-libquadmath \
-  --with-pkgversion='Arch Linux Repositories' \
-  --with-bugurl='https://bugs.archlinux.org/'
-
-  make
-}
-
-package_ghdl-mcode() {
-  pkgdesc="$pkgdesc (mcode backend)"
-
-  cd $pkgname
-
-  make DESTDIR="$pkgdir" install
-}
-
-package_ghdl-llvm() {
-  pkgdesc="$pkgdesc (LLVM backend)"
-  depends+=('llvm-libs')
-
-  cd $pkgname
-
-  make DESTDIR="$pkgdir" install
-
-  # strip binaries
-  find "$pkgdir"/usr/bin/ "$pkgdir"/usr/lib/ghdl -type f -and \( -executable 
-o -name '*.o' \) -exec strip '{}' \;
-}
-
-package_ghdl-gcc() {
-  pkgdesc="$pkgdesc (GCC backend)"
-  options=(!emptydirs)
-
-  cd gcc-build
-
-  mkdir "$srcdir"/dest
-  make DESTDIR="$srcdir"/dest install
-
-  # manually install the files
-  install -dm 755 "$pkgdir"/usr/{bin,lib/{ghdl,gcc/x86_64-pc-linux-gnu/$_gcc}}
-  install -Dm 755 "$srcdir"/dest/usr/bin/ghdl "$pkgdir"/usr/bin/ghdl
-  install -Dm 644 "$srcdir"/dest/usr/lib/ghdl/libbacktrace.a 
"$pkgdir"/usr/lib/ghdl/libbacktrace.a
-  install -Dm 644 "$srcdir"/dest/usr/share/info/ghdl.info 
"$pkgdir"/usr/share/info/ghdl.info
-  install -Dm 644 "$srcdir"/dest/usr/lib/gcc/x86_64-pc-linux-gnu/$_gcc/ghdl1 
"$pkgdir"/usr/lib/gcc/x86_64-pc-linux-gnu/$_gcc/ghdl1
-
-  # strip binaries
-  find "$pkgdir"/usr/bin/ "$pkgdir"/usr/lib/gcc -type f -and \( -executable \) 
-exec strip '{}' \;
-}
-

Copied: ghdl/repos/community-x86_64/PKGBUILD (from rev 613423, 
ghdl/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2020-04-12 15:29:11 UTC (rev 613424)
@@ -0,0 +1,169 @@
+# Maintainer: Filipe Laíns (FFY00) 
+
+pkgbase=ghdl
+pkgname=('ghdl-mcode' 'ghdl-llvm' '