class Dvorak7min < Formula
  desc "Dvorak (simplified keyboard layout) typing tutor"
  homepage "https://web.archive.org/web/dvorak7min.sourcearchive.com/"
  url "https://deb.debian.org/debian/pool/main/d/dvorak7min/dvorak7min_1.6.1+repack.orig.tar.gz"
  version "1.6.1"
  sha256 "4cdef8e4c8c74c28dacd185d1062bfa752a58447772627aded9ac0c87a3b8797"
  license "GPL-2.0"

  bottle do
    rebuild 1
    sha256 cellar: :any_skip_relocation, arm64_big_sur: "eb028aa9707f685095023a20694b713e9adaa2f4ade7adc95b483f54d2775a6e"
    sha256 cellar: :any_skip_relocation, big_sur:       "1e42924b5dd8704ca4fa6d70b7c966c3956268ebf78ef5fc2022fdee3c1ed82b"
    sha256 cellar: :any_skip_relocation, catalina:      "b8f692d9254375715d1f85af32ce5b7487802597818f2bb969b3cac109d3012a"
    sha256 cellar: :any_skip_relocation, mojave:        "2657090fcb79b647e9c805780eb2a90d6a875aee6aebeb2dc0eebbdd3ace3ed1"
    sha256 cellar: :any_skip_relocation, high_sierra:   "0cfad9ea53f984ebc81c87fe2bd7fd8f3bad6c8c0032085de36eb499b041b5b0"
    sha256 cellar: :any_skip_relocation, sierra:        "052c259da37d2e9576fdf1809ce526dd54cedd362bbe747f02fa088e6568983b"
    sha256 cellar: :any_skip_relocation, el_capitan:    "d4bf1a053028f0712193e33911c2af3fb4f0a71b37480969b5c03b798d4930ae"
    sha256 cellar: :any_skip_relocation, yosemite:      "42cad6dbf3f41053e5ba7509657dcf7e02c6211412efb246eaaa9de853a09d35"
  end

  def install
    # Remove pre-built ELF binary first
    system "make", "clean"
    system "make"
    system "make", "INSTALL=#{bin}", "install"
  end
end
