Fix curry build
This commit is contained in:
		
							parent
							
								
									7d780661db
								
							
						
					
					
						commit
						646eda0bbf
					
				| 
						 | 
					@ -5,11 +5,30 @@ aliases:
 | 
				
			||||||
name: "Curry"
 | 
					name: "Curry"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
install:
 | 
					install:
 | 
				
			||||||
 | 
					  prepare:
 | 
				
			||||||
    apt:
 | 
					    apt:
 | 
				
			||||||
    - pakcs
 | 
					      - swi-prolog
 | 
				
			||||||
 | 
					  # We are installing from upstream because the Ubuntu 20.10 package
 | 
				
			||||||
 | 
					  # was broken (pakcs wouldn't start up due to swi-prolog being bumped
 | 
				
			||||||
 | 
					  # from 7.x to 8.x, causing a ZIP decoding error).
 | 
				
			||||||
 | 
					  manual: |
 | 
				
			||||||
 | 
					    install -d "${pkg}/opt"
 | 
				
			||||||
 | 
					    install -d "${pkg}/usr/local/bin"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    path="$(curl -fsSL https://www.informatik.uni-kiel.de/~pakcs/download.html | sed '0,/Current release:/d' | grep 'href="download' | grep Linux | grep -Eo 'download/[^"]+' | head -n1)"
 | 
				
			||||||
 | 
					    wget "https://www.informatik.uni-kiel.de/~pakcs/${path}" -O pakcs.tar.gz
 | 
				
			||||||
 | 
					    mkdir pakcs
 | 
				
			||||||
 | 
					    tar -xf pakcs.tar.gz -C pakcs --strip-components=1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    pushd pakcs
 | 
				
			||||||
 | 
					    make PAKCSINSTALLDIR=/opt/pakcs
 | 
				
			||||||
 | 
					    popd
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    cp -R pakcs "${pkg}/opt/"
 | 
				
			||||||
 | 
					    ln -s /opt/pakcs/src/pakcs "${pkg}/usr/local/bin/"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
repl: |
 | 
					repl: |
 | 
				
			||||||
  SWIPL=swipl pakcs
 | 
					  pakcs
 | 
				
			||||||
 | 
					
 | 
				
			||||||
main: "main.curry"
 | 
					main: "main.curry"
 | 
				
			||||||
template: |
 | 
					template: |
 | 
				
			||||||
| 
						 | 
					@ -17,7 +36,7 @@ template: |
 | 
				
			||||||
  main = putStrLn "Hello, world!"
 | 
					  main = putStrLn "Hello, world!"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
run: |
 | 
					run: |
 | 
				
			||||||
  SWIPL=swipl pakcs :load main.curry :eval main
 | 
					  pakcs :load main.curry :eval main
 | 
				
			||||||
 | 
					
 | 
				
			||||||
scope:
 | 
					scope:
 | 
				
			||||||
  code: |
 | 
					  code: |
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue