#!/bin/sh set -e ELM_VER=2.5.8 ELM_DIR=elm${ELM_VER} ELM_TARBALL=${ELM_DIR}.tar.gz ELM_URL=http://www.instinct.org/elm/files/tarballs/${ELM_TARBALL} if [ ! -f ${ELM_TARBALL} ]; then for i in ${HOME}/downloads /usr/local/src/TARBALLS; do if [ -f ${i}/${ELM_TARBALL} ]; then ELM_TARBALL=${i}/${ELM_TARBALL} break fi done if [ ! -f ${ELM_TARBALL} ]; then wget ${ELM_URL} fi fi rm -rf ${ELM_DIR} tar zxvf ${ELM_TARBALL} (cd ${ELM_DIR} && patch -i ../Configure.patch -b -z .elmpkg-orig) cp -r debian ${ELM_DIR}/debian (cd ${ELM_DIR} dpkg-checkbuilddeps fakeroot debian/rules clean debian/rules build fakeroot debian/rules binary )