1 #mathieu clabaut <mathieu.clabaut@gmail.com>
5 pkgdesc="the industrial tool to efficiently deploy the B Method"
7 url="http://www.atelierb.eu"
10 optdepends=('texlive-bin' 'firefox')
11 install=atelierb.install
12 source=(http://www.atelierb.eu/atelier-b/${pkgver}/free/${pkgname}-${pkgver}-linux-free.tgz)
13 md5sums=('fde235e988b4d1d1a192b8affe0508c6')
18 install -m755 -d $pkgdir/opt/atelierb/
19 DEST=$pkgdir/opt/atelierb
21 tar xfz $srcdir/tarExeAB.lin.tgz
26 \#* | "" | " "* | " "* ) continue ;;
35 echo "Checking directory $NAM ..."
44 done < $DEST/AB/INSTALL/listeAB_linux
45 if [ ! "x$error" = "x" ]
47 echo "Cannot access file or directory $NAM"
50 if [ ! "x$errormod" = "x" ]
52 echo "ERROR : Cannot change UNIX permissions for file or directory $NAM"
56 exec 3> $DEST/AB/AtelierB.new
57 if test -f $DEST/AB/AtelierB
59 cat $DEST/AB/AtelierB >&3
61 cat $DEST/AB/INSTALL/etc/AtelierB.model >&3
66 ATB*ATB*AtelierB_Directory: $DEST/AB
70 ATB*ATB*Atelier_Database_Directory: $DEST/AB/press/bdb
74 ATB*ATB*Print_Command: $DEST/AB/bbin/bprint
78 ATB*BART*RefinerFile: $DEST/AB/press/include/PatchRaffiner.rmf
80 ! Obvious Proof Obligations Generation
83 echo "ATB*POG*Generate_Obvious_PO: FALSE" >&3
94 echo "ATB*OPT_TOOLS_$SYSTEM*Editor_Path: /usr/bin/gvim" >&3
97 if test "${Latex}" = "1"
99 echo "ATB*OPT_TOOLS_$SYSTEM*Latex_Binary_Directory: /usr/bin/" >&3
100 echo "ATB*OPT_TOOLS_$SYSTEM*Latex_Viewer: xdvi" >&3
101 echo "ATB*OPT_TOOLS_$SYSTEM*Latex_Postcript_Translator: dvips" >&3
103 if test "${html}" = "1"
105 echo "ATB*OPT_TOOLS_$SYSTEM*HTML_Viewer_Path: /usr/bin/firefox" >&3
109 mv $DEST/AB/AtelierB.new $DEST/AB/AtelierB
111 # Create new start scripts
112 echo "#!/bin/sh" > $DEST/AB/bbin/startAB
113 echo "atelierb_dir=$DEST" >> $DEST/AB/bbin/startAB
114 cat $DEST/AB/bbin/startAB > $DEST/AB/bbin/startBB
115 cat $DEST/AB/INSTALL/etc/startAB.model >> $DEST/AB/bbin/startAB
116 cat $DEST/AB/INSTALL/etc/startBB.model >> $DEST/AB/bbin/startBB
117 chmod 755 $DEST/AB/bbin/startAB
118 chmod 755 $DEST/AB/bbin/startBB
120 # Create links for old names
122 if [ ! -f $DEST/AB/bbin/lanceAB ]
124 ln -s startAB lanceAB
126 if [ ! -f $DEST/AB/bbin/lanceBB ]
128 ln -s startBB lanceBB
130 install -m755 -d $pkgdir/usr/share/licenses/atelierb
131 install -m644 $srcdir/licence.txt $pkgdir/usr/share/licenses/atelierb
135 # vim:set ts=2 sw=2 et: