512758e6eb
Realign trailing EOS.
40 lines
1.2 KiB
Ruby
40 lines
1.2 KiB
Ruby
class Sdlpop < Formula
|
|
desc "Open-source port of Prince of Persia"
|
|
homepage "https://github.com/NagyD/SDLPoP"
|
|
url "https://github.com/NagyD/SDLPoP/archive/v1.18.1.tar.gz"
|
|
sha256 "8032c47fad4b73021d636ead510bbc1ab5106cff77103e331ad0f32a49a13946"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "7d65b2aeda0577a96a4b24664c7b272bc91ab7ddda0e464d47a1a6ee389e4d45" => :high_sierra
|
|
sha256 "45f4786672fa1f2d4879c00887138c9fb2f778b344223b0eb4ab8a77f8a0a630" => :sierra
|
|
sha256 "32a0513366830e5082ceae4e48286a5817e391b101c64cc4f015c774feeb076e" => :el_capitan
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "sdl2"
|
|
depends_on "sdl2_image"
|
|
depends_on "sdl2_mixer"
|
|
|
|
def install
|
|
system "make", "-C", "src"
|
|
doc.install Dir["doc/*"]
|
|
libexec.install "data"
|
|
libexec.install "prince"
|
|
|
|
# Use var directory to keep save and replay files
|
|
pkgvar = var/"sdlpop"
|
|
pkgvar.install "SDLPoP.ini" unless (pkgvar/"SDLPoP.ini").exist?
|
|
|
|
(bin/"prince").write <<~EOS
|
|
#!/bin/bash
|
|
cd "#{pkgvar}" && exec "#{libexec}/prince" $@
|
|
EOS
|
|
end
|
|
|
|
def caveats; <<~EOS
|
|
Save and replay files are stored in the following directory:
|
|
#{var}/sdlpop
|
|
EOS
|
|
end
|
|
end
|