Skip to content

Commit

Permalink
add esotk static data
Browse files Browse the repository at this point in the history
  • Loading branch information
szampier committed Oct 20, 2024
1 parent aafc119 commit 2de351f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Formula/esopipe-esotk.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
class EsopipeEsotk < Formula
desc "ESO ESOTK instrument pipeline (static data)"
homepage "https://www.eso.org/sci/software/pipelines/"
url "https://ftp.eso.org/pub/dfs/pipelines/instruments/esotk/esotk-kit-0.9.7-1.tar.gz"
sha256 "2d2db2d352b146b1f7c683cd1ee107bb5275e597ef412474ac4d39163fb6ce36"
license "GPL-2.0-or-later"

livecheck do
url :homepage
regex(/href=.*?esotk-kit-(\d+(?:[.-]\d+)+)\.t/i)
end

depends_on "esopipe-esotk-recipes"

def install
version_norevision = version.to_s[/(\d+(?:[.]\d+)+)/i, 1]
system "tar", "xf", "esotk-calib-#{version_norevision}.tar.gz"
(prefix/"share/esopipes/datastatic/esotk-#{version_norevision}").install Dir["esotk-calib-#{version_norevision}/cal/*"]
end

test do
system "true"
end
end

0 comments on commit 2de351f

Please sign in to comment.