updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / euphoria / PKGBUILD
blobd3014b2577612b0d888726914cb6131405057097
1 # Contributor: Jeremy Cowgar <jeremy@cowgar.com>
2 pkgname=euphoria
3 pkgver=4.0.3
4 pkgrel=1
5 pkgdesc="Fast interpreted or compiled general purpose programming language"
6 url="http://openeuphoria.org"
7 license=('custom:"OpenEuphoria License"')
8 source=(http://sourceforge.net/projects/rapideuphoria/files/Euphoria/$pkgver/Linux/${pkgname}-LINUX-${pkgver}.tar.gz)
9 arch=('i686' 'x86_64')
11 if [ "$CARCH" = "x86_64" ]; then
12   depends=('lib32-glibc')
13   makedepends=('gcc-multilib')
16 build() {
17   cd "${srcdir}/${pkgname}-LINUX-${pkgver}/source"
19   ./configure --prefix=/usr
20   make
21   make tools
24 package() {
25   cd "${srcdir}/${pkgname}-LINUX-${pkgver}/source"
27   ## The installer cretes the bin dir too late :'( ##
28   mkdir -p "${pkgdir}/usr/bin"
29   # Base and Tool install
30   make DESTDIR="${pkgdir}" install install-tools
32   # Install our license file per ArchLinux spec
33   mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
34   install -m 644 "${srcdir}/${pkgname}-LINUX-${pkgver}/License.txt" "${pkgdir}/usr/share/licenses/${pkgname}/"
36   # Make an initial eu.cfg
37   cat > eu.cfg <<EOF
38 [all]
39 -i /usr/share/${pkgname}/include
40 EOF
41   mkdir -p "${pkgdir}/etc/${pkgname}"
42   install -m644 eu.cfg "${pkgdir}/etc/${pkgname}"
45 md5sums=('3c034c7f0725d30dcd29213203be9315')