1 # Either build this package as root or, as root, do
2 # "ln -s /home/user/packages/hol/src/hol/ /opt/hol"
3 # before building and "rm /opt/hol" after building.
5 # If you get mysterious build failures, make sure you have
6 # overcommit enabled or have a lot of free virtual memory.
11 pkgdesc='Interactive proof assistant for higher order logic'
12 url='http://hol.sourceforge.net/'
13 arch=('i686' 'x86_64')
16 source=("http://downloads.sourceforge.net/project/hol/hol/${pkgver//./-}/${pkgver//./-}.tar.gz")
17 md5sums=('83a606e88d03643e8187663068e80203')
20 if ! [ "$(readlink /opt/hol)" = "${srcdir}/hol/" ] ; then
22 if ! ln -s ${srcdir}/hol/ /opt/hol; then
23 echo "/opt/hol doesn't link to ${srcdir}/hol/";
28 echo "val holdir = \"/opt/hol\"" > tools-poly/poly-includes.ML
29 poly < tools/smart-configure.sml || return 1
33 mkdir -p ${pkgdir}/opt
34 mv ${srcdir}/hol ${pkgdir}/opt/hol
35 mkdir -p ${pkgdir}/usr/bin
36 ln -s /opt/hol/bin/hol ${pkgdir}/usr/bin/hol
37 ln -s /opt/hol/bin/hol.noquote ${pkgdir}/usr/bin/hol.noquote
38 ln -s /opt/hol/bin/Holmake ${pkgdir}/usr/bin/Holmake