-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathosinit.rb
41 lines (36 loc) · 1.51 KB
/
osinit.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Documentation: https://docs.brew.sh/Formula-Cookbook
# https://rubydoc.brew.sh/Formula
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class Osinit < Formula
desc "Airdb Development Builder"
homepage "https://github.com/airdb/homebrew-taps"
version "1.0.0"
#url "https://github.com/airdb/adb/releases/latest/download/adb-darwin-amd64.zip"
#url "https://github.com/airdb/adb/releases/download/v1.0.2/adb-darwin-amd64.zip"
url "file:///tmp/config.tgz"
#sha256 "065a12316a1b769bff82b63a808bf93259cefbe2b8061d4a8b7df5ecf8ed97c3"
# depends_on "cmake" => :build
test do
# `test do` will create, run in and delete a temporary directory.
#
# This test will fail and we won't accept that! For Homebrew/homebrew-core
# this will need to be a test that verifies the functionality of the
# software. Run the test with `brew test adb`. Options passed
# to `brew install` such as `--HEAD` also need to be provided to `brew test`.
#
# The installed folder is not in the path, so use the entire path to any
# executables being tested: `system "#{bin}/program", "do", "something"`.
system "false"
end
def install
system "echo", "start install ===="
#bin.install "/opt/src/github.com/airdb/config/bar/bug.sh"
system "mkdir -p /tmp/hello "
bin.install "osinit.sh"
end
def post_install
system "echo", "post install ======"
#rm_f pkgetc/"cert.pem"
#pkgetc.install_symlink Formula["ca-certificates"].pkgetc/"cert.pem"
end
end