require 'formula' class Despotify :build depends_on 'libao' depends_on 'libvorbis' def install system "make Makefile.local.mk" inreplace "Makefile.local.mk", "# INSTALL_PREFIX = /usr", "INSTALL_PREFIX = #{prefix}" system "make" system "make install" end end