Skip to content

Instantly share code, notes, and snippets.

@stefanschmidt
Created December 7, 2015 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stefanschmidt/2f9b8d72cb0e83ba464a to your computer and use it in GitHub Desktop.
Save stefanschmidt/2f9b8d72cb0e83ba464a to your computer and use it in GitHub Desktop.
Linuxbrew Formula for GNU Screen with properly working task bar and custom session folder
class Screen < Formula
homepage "https://www.gnu.org/software/screen"
stable do
url "http://ftpmirror.gnu.org/screen/screen-4.2.0.tar.gz"
mirror "https://ftp.gnu.org/gnu/screen/screen-4.2.0.tar.gz"
sha256 "7dc1b7a3e7669eefe7e65f32e201704d7a11cc688244fcf71757f7792a5ff413"
end
head do
url "git://git.savannah.gnu.org/screen.git"
# This patch is to disable the error message
# "/var/run/utmp: No such file or directory" on launch
patch do
url "https://gist.githubusercontent.com/yujinakayama/4608863/raw/75669072f227b82777df25f99ffd9657bd113847/gistfile1.diff"
sha256 "9c53320cbe3a24c8fb5d77cf701c47918b3fabe8d6f339a00cfdb59e11af0ad5"
end
end
depends_on "autoconf" => :build
depends_on "automake" => :build
def install
if build.head?
cd "src"
end
# With parallel build, it fails
# because of trying to compile files which depend osdef.h
# before osdef.sh script generates it.
ENV.deparallelize
system "./autogen.sh"
system "./configure", "--prefix=#{prefix}",
"--mandir=#{man}",
"--infodir=#{info}",
"--enable-colors256",
"--with-socket-dir=/tmp/uscreens"
system "make"
system "make", "install"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment