4 pkgdesc="Io is a dynamic prototype-based programming language"
7 url="http://www.iolanguage.com/"
8 makedepends=('cmake>=2.8' 'git')
11 gitroot="https://github.com/stevedekorte/io.git"
13 gitrev="f2503ba8" #23afbccc
18 if [[ -d ${gitname} ]] ; then
21 git reset -q --hard origin/master
22 git checkout -f -q ${gitrev}
26 git checkout -f -q ${gitrev}
29 # hardcode install prefix to /usr (akojo)
30 sed -i 's|\${CMAKE_INSTALL_PREFIX}|/usr|' libs/iovm/CMakeLists.txt
31 sed -i '34,35d' CMakeLists.txt
32 sed -i '34i\ SET(CMAKE_CXX_FLAGS_DEBUGFAST "-g -O0 -ldl")\n SET(CMAKE_C_FLAGS_DEBUGFAST "-g -O0 -ldl")' CMakeLists.txt
33 sed -i '114,$d' CMakeLists.txt # remove cpack
34 sed -i '35,37d;49,50d' addons/Socket/source/IoEvOutRequest.h # revert commits dbf92ce5 and b6213118
37 cmake -DCMAKE_INSTALL_PREFIX=${pkgdir}/usr .. || return 1
39 make install || return 1
40 install -Dm644 ../license/bsd_license.txt ${pkgdir}/usr/share/licenses/${pkgname}/bsd_license.txt