updated on Sat Jan 21 12:00:39 UTC 2012
[aur-mirror.git] / ghdl / PKGBUILD
blob24e3e88bec3ecc59bf251ba5d3f04590c5aca853
1 # Maintainer: Thomas Dziedzic < gostrc at gmail >
2 # Contributor: Andrej Gelenberg <andrej.gelenberg@udo.edu>
3 # Contributor: Matt Portas <matt.r.portas(at)gmail(dot)com>
5 pkgname=ghdl
6 _gccver=4.3.4
7 pkgver=0.29
8 pkgrel=4
9 arch=('i686' 'x86_64')
10 pkgdesc='A complete VHDL simulator, using GCC technology.'
11 url='http://ghdl.free.fr/'
12 license=('GPL')
13 depends=('mpfr')
14 makedepends=('gcc-ada')
15 source=("http://ghdl.free.fr/${pkgname}-${pkgver}.tar.bz2"
16         "ftp://gcc.gnu.org/pub/gcc/releases/gcc-${_gccver}/gcc-core-${_gccver}.tar.bz2"
17         'gcc_pure64.patch')
18 md5sums=('fd3dc7a71ba521e442bef76f48177767'
19          '575b3220bb8e7060939c429fc8608d22'
20          '22cec272f9cc2801d3cd348feaca888b')
22 build() {
23   mv ${pkgname}-${pkgver}/vhdl gcc-${_gccver}/gcc
25   cd gcc-$_gccver
27   if [ ${CARCH} = 'x86_64' ]; then
28     patch -Np1 -i ${srcdir}/gcc_pure64.patch
29   fi
31   ./configure \
32     --prefix=/usr \
33     --infodir=/usr/share/info \
34     --libdir=/usr/lib \
35     --libexecdir=/usr/lib \
36     --mandir=/usr/share/man \
37     --enable-clocale=gnu \
38     --enable-languages=vhdl \
39     --enable-threads=posix \
40     --enable-__cxa_atexit \
41     --disable-bootstrap \
42     --disable-libstdcxx-pch \
43     --disable-multilib
45   make -j1
48 package() {
49   cd gcc-${_gccver}
51   make -j1 DESTDIR=${pkgdir} install
53   # Clean up
54   rm ${pkgdir}/usr/bin/{cpp,gcc{,bug},gcov,${CHOST}-gcc{,-${_gccver}}}
55   rm ${pkgdir}/usr/share/man/man1/{cpp,gcc,gcov}.1
56   rm ${pkgdir}/usr/share/man/man7/{fsf-funding,gfdl,gpl}.7
57   rm ${pkgdir}/usr/share/info/{cpp{,internals},gcc{,install,int},libgomp}.info
58   rm ${pkgdir}/usr/lib/lib{iberty.a,gcc_s*,gomp*,mudflap*,ssp*}
59   rm -r ${pkgdir}/usr/{include,share/locale}