#Maintainer: R S Ananda Murthy pkgname=ghdl pkgver=0.29 pkgrel=1 zenver=64 arch=i486 gccver=4.3.4 source=("http://ghdl.free.fr/$pkgname-$pkgver.tar.bz2" "ftp://gcc.gnu.org/pub/gcc/releases/gcc-${gccver}/gcc-core-${gccver}.tar.bz2") sourcetemplate=http://zenwalk.pinguix.com/user-accounts/rsamurti/ghdl/ docs=("readme" "copying") url=http://ghdl.free.fr/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "GHDL is a complete VHDL simulator, using the GCC technology." "VHDL is a language standardized by the IEEE, intended for developing" "digital electronic systems. GHDL implements the VHDL language" "according to the IEEE 1076-1987, the IEEE 1076-1993 and later" "standards. GHDL compiles VHDL files and creates a binary which" "simulates (or executes) your design. Go to the download page to" "download the sources or the binaries of GHDL." ) build() { mv $startdir/src/$pkgname-$pkgver/vhdl $startdir/src/gcc-4.3.4/gcc rm $startdir/src/gcc-4.3.4/COPYING rm $startdir/src/gcc-4.3.4/README mv $startdir/src/$pkgname-$pkgver/* $startdir/src cd $startdir/src/gcc-4.3.4 ./configure --enable-languages=vhdl --disable-bootstrap \ --enable-threads=posix --mandir=/usr/man --infodir=/usr/info \ --enable-__cxa_atexit --disable-multilib --libdir=/usr/lib \ --libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch --prefix=/usr || return 1 make || return 1 make -j1 DESTDIR=$startdir/pkg install || return 1 # Remove unwanted directories and files. cd $startdir/pkg/usr rm lib/* rm lib64/* rm -rf man/man7 rmdir include rm -rf share for i in gccbug $CHOST-gcc $CHOST-gcc-4.3.4 do rm bin/$i done for i in gccinstall libgomp cppinternals gccint do rm info/$i.info* done for i in gcov gcc cpp do rm man/man1/$i.1** rm info/$i.info* rm bin/$i done }