1 # Maintainer: Jesse Jaara <gmail: jesse.jaara>
7 pkgdesc="Old series 3 version. A simple, flexible, and easy programming language."
8 url="http://www.rapideuphoria.com"
10 if [ "$CARCH" = "x86_64" ]; then
11 depends=('lib32-glibc')
12 makedepends=('upx' 'gcc-multilib')
16 source=(http://www.rapideuphoria.com/31/euphor31.tar 64bit_fix.patch)
17 install=euphoria.install
21 cd "${srcdir}/euphoria/source"
22 export EUDIR="${srcdir}/euphoria"
23 export PATH="${srcdir}/euphoria/bin:$PATH"
25 if [ "$CARCH" = "x86_64" ]; then
26 patch -p 2 -i ../../64bit_fix.patch
27 sed 's|cc_name = "gcc"|cc_name = "gcc -m32"|g' -i c_decl.e ## Fix ecu to add -m32 option to produced
28 sed 's|gcc %s %s|gcc -m32 %s %s|g' -i c_decl.e ## makefile to compile on x86_64
29 sed 's|./emake|sed "s/gcc/gcc -m32/g" -i emake\n./emake|g' -i buildu
30 export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
33 sed 's|~/upx|upx|g' -i bmakeu
34 sed 's|bin/ecu.a|lib/ecu.a|g' -i c_decl.e ## Fix the lib dir
35 mkdir ../lib && ln -s ../bin/ecu.a ../lib/ecu.a
40 cd "${srcdir}/euphoria"
42 mkdir -p "${pkgdir}"/etc/profile.d
43 mkdir -p "${pkgdir}"/usr/{bin,lib,share/euphoria3/bin}
44 mkdir -p "${pkgdir}"/usr/share/licenses/euphoria3
47 cp License.txt "${pkgdir}/usr/share/licenses/$pkgname"
48 cp bin/{ecu,exu} "${pkgdir}/usr/bin/"
49 cp bin/ecu.a "${pkgdir}/usr/lib/"
50 cp bin/{ascii,ed,eprint,guru,key,lines,search,where}{,.ex} \
51 bin/{backendu,bindu,cdguru,keywords.e,shroud,syncolor.e}\
52 "${pkgdir}/usr/share/$pkgname/bin/"
53 cp -r doc "${pkgdir}/usr/share/$pkgname/"
54 cp -r include "${pkgdir}/usr/"
55 cp -r demo "${pkgdir}/usr/share/$pkgname/"
56 cp -r html "${pkgdir}/usr/share/$pkgname/"
57 cp -r tutorial "${pkgdir}/usr/share/$pkgname/"
59 echo "export EUDIR=/usr" >> "${pkgdir}/etc/profile.d/$pkgname.sh"
60 chmod +x "${pkgdir}/etc/profile.d/$pkgname.sh"
63 md5sums=('9bd3f2dd78561f36565ebd47cac7199d'
64 'fd1a6e5ce1fee54c2eb4904c2c7c1340')